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