Merge "Fetch account-by-id from accounts cache during auth"
This commit is contained in:
@@ -114,8 +114,8 @@ public class AccountManager {
|
||||
|
||||
} else { // Account exists
|
||||
|
||||
Account act = db.accounts().get(id.getAccountId());
|
||||
if (act == null || !act.isActive()) {
|
||||
Account act = byIdCache.get(id.getAccountId()).getAccount();
|
||||
if (!act.isActive()) {
|
||||
throw new AccountException("Authentication error, account inactive");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user