mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6349: IAM - No error message presented to the user , when invalid password is provided.
- AccountManager now works using accountId instead of accountType
This commit is contained in:
parent
d814383265
commit
2cf4db5359
|
|
@ -2042,7 +2042,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
|
|||
UserAccount userAccount = _userAccountDao.getUserAccount(username, domainId);
|
||||
if (userAccount != null) {
|
||||
if (userAccount.getState().equalsIgnoreCase(Account.State.enabled.toString())) {
|
||||
if (!isInternalAccount(userAccount.getType())) {
|
||||
if (!isInternalAccount(userAccount.getId())) {
|
||||
// Internal accounts are not disabled
|
||||
int attemptsMade = userAccount.getLoginAttempts() + 1;
|
||||
if (updateIncorrectLoginCount) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue