Skip to content

Commit 14a7871

Browse files
Vitor Hugo Homem Marzarottoerikbocks
authored andcommitted
Fix check
1 parent e8200a0 commit 14a7871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/user/AccountManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2877,7 +2877,7 @@ private UserAccount getUserAccount(String username, String password, Long domain
28772877
for (UserAuthenticator authenticator : _userAuthenticators) {
28782878
final String[] secretCodeArray = (String[])requestParameters.get(ApiConstants.SECRET_CODE);
28792879
String secretCode = ((secretCodeArray == null) ? null : secretCodeArray[0]);
2880-
if (userSource != User.Source.UNKNOWN && secretCode == null) {
2880+
if (userSource != User.Source.UNKNOWN && userSource != User.Source.SAML2DISABLED && secretCode == null) {
28812881
if (!authenticator.getName().equalsIgnoreCase(userSource.name())) {
28822882
continue;
28832883
}

0 commit comments

Comments
 (0)