Ticket #16262: auth-backend.patch
File auth-backend.patch, 374 bytes (added by , 13 years ago) |
---|
-
backends.py
old new 17 17 user = User.objects.get(username=username) 18 18 if user.check_password(password): 19 19 return user 20 except ValueError: 21 return None 20 22 except User.DoesNotExist: 21 23 return None 22 24