🐛 Fix createsuperuser
This commit is contained in:
parent
4c11297d65
commit
49c24b7f0c
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class User(Model):
|
||||||
|
|
||||||
def set_email(self, new_email: str) -> None:
|
def set_email(self, new_email: str) -> None:
|
||||||
"""Hash and set the e-mail address."""
|
"""Hash and set the e-mail address."""
|
||||||
self.email_hash = hmac_hash(email)
|
self.email_hash = hmac_hash(new_email)
|
||||||
|
|
||||||
def verify_password(self, raw_password: str) -> bool:
|
def verify_password(self, raw_password: str) -> bool:
|
||||||
"""Verify a plaintext password against the stored hash."""
|
"""Verify a plaintext password against the stored hash."""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue