Fixing bug in checking user password in Default Aunthentication method
This commit is contained in:
parent
9d65e2ad17
commit
52bb2b2208
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ class User(db.Model):
|
|||
user_info = User.query.filter(User.username == self.username).first()
|
||||
|
||||
if user_info:
|
||||
if self.check_password(user_info.password):
|
||||
if user_info.password and self.check_password(user_info.password):
|
||||
logging.info('User "%s" logged in successfully' % self.username)
|
||||
return True
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue