Skip to content

Commit 2cf4db5

Browse files
author
Prachi Damle
committed
CLOUDSTACK-6349: IAM - No error message presented to the user , when invalid password is provided.
- AccountManager now works using accountId instead of accountType
1 parent d814383 commit 2cf4db5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,7 @@ private UserAccount getUserAccount(String username, String password, Long domain
20422042
UserAccount userAccount = _userAccountDao.getUserAccount(username, domainId);
20432043
if (userAccount != null) {
20442044
if (userAccount.getState().equalsIgnoreCase(Account.State.enabled.toString())) {
2045-
if (!isInternalAccount(userAccount.getType())) {
2045+
if (!isInternalAccount(userAccount.getId())) {
20462046
// Internal accounts are not disabled
20472047
int attemptsMade = userAccount.getLoginAttempts() + 1;
20482048
if (updateIncorrectLoginCount) {

0 commit comments

Comments
 (0)