mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Fixed user login problem - ignore case when verify user/account state
This commit is contained in:
		
							parent
							
								
									d4b56e89c3
								
							
						
					
					
						commit
						0a3895a923
					
				@ -596,7 +596,7 @@ public class ManagementServerImpl implements ManagementServer {
 | 
			
		||||
            domainName = domain.getName();
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        if (!userAccount.getState().equals("enabled") || !userAccount.getAccountState().equals("enabled")) {
 | 
			
		||||
        if (!userAccount.getState().equalsIgnoreCase(Account.State.Enabled.toString()) || !userAccount.getAccountState().equalsIgnoreCase(Account.State.Enabled.toString())) {
 | 
			
		||||
            if (s_logger.isInfoEnabled()) {
 | 
			
		||||
                s_logger.info("User " + username + " in domain " + domainName + " is disabled/locked (or account is disabled/locked)");
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user