mirror of https://github.com/apache/cloudstack.git
Fix check
This commit is contained in:
parent
e8200a0b74
commit
14a7871727
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue