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