forked from MarseyWorld/MarseyWorld
dsffsd
parent
584af0d620
commit
117f155ac0
|
@ -271,6 +271,13 @@ def sign_up_post(v):
|
|||
|
||||
email = request.values.get("email")
|
||||
email = email.strip()
|
||||
|
||||
if email.endswith("@gmail.com"):
|
||||
email=email.split('@')[0]
|
||||
email=email.split('+')[0]
|
||||
email=email.replace('.','')
|
||||
email=f"{email}@gmail.com"
|
||||
|
||||
if not email: email = None
|
||||
|
||||
existing_account = get_user(username, graceful=True)
|
||||
|
|
|
@ -587,6 +587,13 @@ def settings_security_post(v):
|
|||
escape("Invalid password."))
|
||||
|
||||
new_email = request.values.get("new_email","").strip()
|
||||
|
||||
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=f"{new_email}@gmail.com"
|
||||
|
||||
if new_email == v.email:
|
||||
return redirect("/settings/security?error=That email is already yours!")
|
||||
|
||||
|
|
Loading…
Reference in New Issue