master
Aevann1 2021-07-22 22:11:50 +02:00
parent 69301387d3
commit 6ff87f1af6
1 changed files with 2 additions and 2 deletions

View File

@ -300,7 +300,7 @@ def sign_up_post(v):
# if not re.match(valid_email_regex, request.form.get("email")): # if not re.match(valid_email_regex, request.form.get("email")):
# return new_signup("That's not a valid email.") # return new_signup("That's not a valid email.")
# Check for existing acocunts # Check for existing accounts
email = request.form.get("email") email = request.form.get("email")
email = email.strip() email = email.strip()
if not email: if not email:
@ -418,7 +418,7 @@ def post_forgot():
username = request.form.get("username").lstrip('@') username = request.form.get("username").lstrip('@')
email = request.form.get("email",'').strip() email = request.form.get("email",'').strip()
email=email.replace("_","").replace(".","") email=email.replace("_","\_").replace(".","")
user = g.db.query(User).filter( user = g.db.query(User).filter(
User.username.ilike(username), User.username.ilike(username),