🐛 Fix createsuperuser

This commit is contained in:
Brian Wiborg 2025-10-08 13:19:47 +02:00
parent 4c11297d65
commit 49c24b7f0c
No known key found for this signature in database

View file

@ -59,7 +59,7 @@ class User(Model):
def set_email(self, new_email: str) -> None:
"""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:
"""Verify a plaintext password against the stored hash."""