diff --git a/src/ohmyapi/builtin/auth/models.py b/src/ohmyapi/builtin/auth/models.py index ea9f9ee..bdb4451 100644 --- a/src/ohmyapi/builtin/auth/models.py +++ b/src/ohmyapi/builtin/auth/models.py @@ -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."""