Skip to content

Draft: refactor: consolidate email OTP required logic

Relates to issue #579580

This MR was created by Duo in Session 1241461

Changes

  • Consolidate email OTP required logic from multiple locations into a single, reusable method on the User model
  • Ensure consistent behavior across VerifiesWithEmail controller, SessionsHelper, and User model
  • Update all call sites to use the consolidated method
  • Maintain backward compatibility with existing grace period and enrollment logic

Merge request reports

Loading