mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-07 19:05:39 +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
|
user.email = self.email
|
||||||
|
|
||||||
# store new password hash (only if changed)
|
# store new password hash (only if changed)
|
||||||
if self.plain_text_password != "":
|
if self.plain_text_password:
|
||||||
user.password = self.get_hashed_password(
|
user.password = self.get_hashed_password(
|
||||||
self.plain_text_password).decode("utf-8")
|
self.plain_text_password).decode("utf-8")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user