This commit is contained in:
Aevann1 2022-03-02 06:24:36 +02:00
parent a435d7e8cb
commit 70cc5c85e7
9 changed files with 75 additions and 49 deletions

View file

@ -54,6 +54,11 @@ def api_verify_email(v):
def activate(v):
email = request.values.get("email", "").strip().lower()
if not email_regex.fullmatch(email):
return render_template("message.html", v=v, title="Invalid email.", error="Invalid email."), 400
id = request.values.get("id", "").strip()
timestamp = int(request.values.get("time", "0"))
token = request.values.get("token", "").strip()