Skip to content

Commit

Permalink
require OTP code even on trusted hosts (for the first time)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Mar 7, 2024
1 parent c674d33 commit dee9544
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,9 @@ public synchronized String login() {
auth.setLocalPassword(null);
clearAuthenticationFailedMessage();
if (logon.getEnable2fa()
&& (Settings.getBoolean(SettingCodes.TRUSTED_HOST_2FA_REQUIRED, Bundle.SETTINGS, DefaultSettings.TRUSTED_HOST_2FA_REQUIRED) || !WebUtil.isTrustedHost())) {
&& (logon.getShowOtpRegistrationInfo()
|| Settings.getBoolean(SettingCodes.TRUSTED_HOST_2FA_REQUIRED, Bundle.SETTINGS, DefaultSettings.TRUSTED_HOST_2FA_REQUIRED)
|| !WebUtil.isTrustedHost())) {
otpRequired = true;
outcome = getLoginOutcome(false);
} else {
Expand Down

0 comments on commit dee9544

Please sign in to comment.