Skip to content
Browse files

User.authenticate robust when the password is missing

  • Loading branch information...
1 parent a1ac220 commit 898f4bdfd0e6a09df8ac3e97637e8e446976d1ac @jdavid jdavid committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 users.py
View
2 users.py
@@ -150,6 +150,8 @@ def get_auth_token(self):
def authenticate(self, password):
my_password = self.get_password()
+ if my_password is None:
+ return False
algo = my_password.get_parameter('algo', 'sha1')
salt = my_password.get_parameter('salt', '')

0 comments on commit 898f4bd

Please sign in to comment.
Something went wrong with that request. Please try again.