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
 | 
					        } else { // Account exists
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          Account act = db.accounts().get(id.getAccountId());
 | 
					          Account act = byIdCache.get(id.getAccountId()).getAccount();
 | 
				
			||||||
          if (act == null || !act.isActive()) {
 | 
					          if (!act.isActive()) {
 | 
				
			||||||
            throw new AccountException("Authentication error, account inactive");
 | 
					            throw new AccountException("Authentication error, account inactive");
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user