Skip to content

Commit

Permalink
don't show otpinfo on trusted hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Apr 24, 2024
1 parent 93f96b6 commit 3c38e88
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1215,9 +1215,9 @@ public synchronized String login() {
auth.setLocalPassword(null);
clearAuthenticationFailedMessage();
if (logon.getEnable2fa()
&& (logon.getShowOtpRegistrationInfo()
|| 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 3c38e88

Please sign in to comment.