This commit is contained in:
Aevann1 2021-11-23 23:03:20 +02:00
parent b1c7bd1151
commit e03cf50765
2 changed files with 14 additions and 0 deletions

View file

@ -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)