mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-08 00:43:12 -05:00
fix: strict optional errors (#1759)
* fix strict optional errors * fix typing in repository * fix backup db files location * update workspace settings
This commit is contained in:
@@ -31,6 +31,9 @@ class PasswordResetService(BaseService):
|
||||
def send_reset_email(self, email: str):
|
||||
token_entry = self.generate_reset_token(email)
|
||||
|
||||
if token_entry is None:
|
||||
return None
|
||||
|
||||
# Send Email
|
||||
email_servive = EmailService()
|
||||
reset_url = f"{self.settings.BASE_URL}/reset-password?token={token_entry.token}"
|
||||
|
||||
Reference in New Issue
Block a user