verify_ticket(ticket) can return None as attributes
This commit is contained in:
		@@ -44,6 +44,8 @@ class CASFederateValidateUser(object):
 | 
			
		||||
            return False
 | 
			
		||||
        username, attributs, pgtiou = self.client.verify_ticket(ticket)
 | 
			
		||||
        if username is not None:
 | 
			
		||||
            if attributs is None:
 | 
			
		||||
                attributs = {}
 | 
			
		||||
            attributs["provider"] = self.provider
 | 
			
		||||
            self.username = username
 | 
			
		||||
            self.attributs = attributs
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user