remotes/1693045480750635534/spooky-22
Aevann1 2021-11-23 23:04:13 +02:00
parent 117f155ac0
commit 4cb242922e
2 changed files with 4 additions and 4 deletions

View File

@ -275,7 +275,7 @@ def sign_up_post(v):
if email.endswith("@gmail.com"):
email=email.split('@')[0]
email=email.split('+')[0]
email=email.replace('.','')
email=email.replace('.','').replace('_','')
email=f"{email}@gmail.com"
if not email: email = None
@ -383,7 +383,7 @@ def post_forgot():
if not user and email.endswith("@gmail.com"):
email=email.split('@')[0]
email=email.split('+')[0]
email=email.replace('.','')
email=email.replace('.','').replace('_','')
email=f"{email}@gmail.com"
user = g.db.query(User).filter(
User.username.ilike(username),
@ -506,7 +506,7 @@ def request_2fa_disable():
if email != user.email and email.endswith("@gmail.com"):
email=email.split('@')[0]
email=email.split('+')[0]
email=email.replace('.','')
email=email.replace('.','').replace('_','')
email=f"{email}@gmail.com"
if email != user.email:
return render_template("message.html",

View File

@ -591,7 +591,7 @@ def settings_security_post(v):
if new_email.endswith("@gmail.com"):
new_email=new_email.split('@')[0]
new_email=new_email.split('+')[0]
new_email=new_email.replace('.','')
new_email=new_email.replace('.','').replace('_','')
new_email=f"{new_email}@gmail.com"
if new_email == v.email: