Fix check

This commit is contained in:
Vitor Hugo Homem Marzarotto 2025-05-14 15:09:14 -03:00 committed by erikbocks
parent e8200a0b74
commit 14a7871727
1 changed files with 1 additions and 1 deletions

View File

@ -2877,7 +2877,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
for (UserAuthenticator authenticator : _userAuthenticators) {
final String[] secretCodeArray = (String[])requestParameters.get(ApiConstants.SECRET_CODE);
String secretCode = ((secretCodeArray == null) ? null : secretCodeArray[0]);
if (userSource != User.Source.UNKNOWN && secretCode == null) {
if (userSource != User.Source.UNKNOWN && userSource != User.Source.SAML2DISABLED && secretCode == null) {
if (!authenticator.getName().equalsIgnoreCase(userSource.name())) {
continue;
}