mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Fixing bug in checking user password in Default Aunthentication method
This commit is contained in:
parent
9d65e2ad17
commit
52bb2b2208
@ -134,7 +134,7 @@ class User(db.Model):
|
|||||||
user_info = User.query.filter(User.username == self.username).first()
|
user_info = User.query.filter(User.username == self.username).first()
|
||||||
|
|
||||||
if user_info:
|
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)
|
logging.info('User "%s" logged in successfully' % self.username)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user