Skip to content

Refactor second factor validation to rely on Login::secondFactorApi()#44

Open
amulet1 wants to merge 1 commit intohorde:FRAMEWORK_6_0from
amulet1:second_factor_fixes
Open

Refactor second factor validation to rely on Login::secondFactorApi()#44
amulet1 wants to merge 1 commit intohorde:FRAMEWORK_6_0from
amulet1:second_factor_fixes

Conversation

@amulet1
Copy link
Contributor

@amulet1 amulet1 commented Mar 10, 2026

  • Harden/replace direct $registry->call('secondfactor/blockLogin') calls in login.php and ResponsiveLoginController with Login::secondFactorApi()
  • Make secondFactorApi() public and add support for optional API call arguments
  • Fix second factor mode check: use secondFactorMode > 0 instead of secondFactorSupported
  • Fix $authUser null coalescing to explicit (string) cast
  • Change $errorSecondFactor init to 0 (prep for Horde_Auth reason code)

…Api()

- Harden/replace direct $registry->call('secondfactor/blockLogin') calls in
  login.php and ResponsiveLoginController with Login::secondFactorApi()
- Make secondFactorApi() public and add support for optional API call arguments
- Fix second factor mode check: use secondFactorMode > 0 instead of
  secondFactorSupported
- Fix $authUser null coalescing to explicit (string) cast
- Change $errorSecondFactor init to 0 (prep for Horde_Auth reason code)
@amulet1 amulet1 requested a review from TDannhauer March 10, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant