mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Check if plain_text_password is falsish instead of empty string
This commit is contained in:
parent
ab6480a4b4
commit
7ef6f5db4e
@ -473,7 +473,7 @@ class User(db.Model):
|
||||
user.email = self.email
|
||||
|
||||
# store new password hash (only if changed)
|
||||
if self.plain_text_password != "":
|
||||
if self.plain_text_password:
|
||||
user.password = self.get_hashed_password(
|
||||
self.plain_text_password).decode("utf-8")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user