mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 09:37:25 +01:00 
			
		
		
		
	src/ircdb: checkPassword should return false when password is None instead of trying to continue with the check.
This commit is contained in:
		
							parent
							
								
									d074721603
								
							
						
					
					
						commit
						9c34b231aa
					
				@ -255,6 +255,8 @@ class IrcUser(object):
 | 
			
		||||
 | 
			
		||||
    def checkPassword(self, password):
 | 
			
		||||
        """Checks the user's password."""
 | 
			
		||||
        if password is None:
 | 
			
		||||
            return False
 | 
			
		||||
        if self.hashed:
 | 
			
		||||
            (salt, _) = self.password.split('|')
 | 
			
		||||
            return (self.password == utils.saltHash(password, salt=salt))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user