Skip to content

Commit a489d07

Browse files
author
Vitor Hugo Homem Marzarotto
committed
Fix check
1 parent f0838cd commit a489d07

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
@@ -2723,7 +2723,7 @@ private UserAccount getUserAccount(String username, String password, Long domain
27232723
for (UserAuthenticator authenticator : _userAuthenticators) {
27242724
final String[] secretCodeArray = (String[])requestParameters.get(ApiConstants.SECRET_CODE);
27252725
String secretCode = ((secretCodeArray == null) ? null : secretCodeArray[0]);
2726-
if (userSource != User.Source.UNKNOWN && secretCode == null) {
2726+
if (userSource != User.Source.UNKNOWN && userSource != User.Source.SAML2DISABLED && secretCode == null) {
27272727
if (!authenticator.getName().equalsIgnoreCase(userSource.name())) {
27282728
continue;
27292729
}

0 commit comments

Comments
 (0)