fish
This commit is contained in:
parent
a435d7e8cb
commit
70cc5c85e7
9 changed files with 75 additions and 49 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue