lol
This commit is contained in:
@@ -29,11 +29,6 @@ def hash_token(token: str) -> str:
|
||||
token.encode("utf-8")
|
||||
).hexdigest()
|
||||
|
||||
|
||||
# ============================================================
|
||||
# EMAIL
|
||||
# ============================================================
|
||||
|
||||
def send_email(
|
||||
email: str,
|
||||
subject: str,
|
||||
@@ -134,7 +129,7 @@ If you did not request this, you can ignore this email.
|
||||
|
||||
<p>
|
||||
<a href="{verification_url}">
|
||||
Verify your email address
|
||||
https://ben.de-roo.org/api/verify
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@@ -198,7 +193,7 @@ If you did not request this, you can ignore this email.
|
||||
|
||||
<p>
|
||||
<a href="{password_reset_url}">
|
||||
Reset your password
|
||||
https://ben.de-roo.org/api/update-password_page
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@@ -222,11 +217,6 @@ If you did not request this, you can ignore this email.
|
||||
html=html,
|
||||
)
|
||||
|
||||
|
||||
# ============================================================
|
||||
# EMAIL ADDRESS VERIFICATION
|
||||
# ============================================================
|
||||
|
||||
def update_email(
|
||||
user_id: int,
|
||||
new_email: str,
|
||||
@@ -435,11 +425,6 @@ def verify_email(
|
||||
finally:
|
||||
conn.close()
|
||||
|
||||
|
||||
# ============================================================
|
||||
# PASSWORD RESET
|
||||
# ============================================================
|
||||
|
||||
def create_password_reset(
|
||||
user_id: int,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user