Skip to content

Commit

Permalink
don't show otpinfo on trusted hosts #1
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Apr 25, 2024
1 parent 3c38e88 commit 24cb289
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1215,9 +1215,8 @@ 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()))) {
&& (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 24cb289

Please sign in to comment.