From 6509e96bf806cf346805ccd07dcb0392fb6bbfc6 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Mon, 26 Jul 2021 17:52:55 +0200 Subject: [PATCH] sneed --- drama/routes/login.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drama/routes/login.py b/drama/routes/login.py index ddecd15e20..3b2ebf4fef 100644 --- a/drama/routes/login.py +++ b/drama/routes/login.py @@ -350,14 +350,15 @@ def sign_up_post(v): password=request.form.get("password"), email=email, created_utc=int(time.time()), - creation_ip=request.remote_addr, + #creation_ip=request.remote_addr, referred_by=ref_id or None, - creation_region=request.headers.get("cf-ipcountry"), + #creation_region=request.headers.get("cf-ipcountry"), ban_evade = int(any([x.is_banned for x in g.db.query(User).filter(User.id.in_(tuple(session.get("history", [])))).all() if x])) ) except Exception as e: #print(e) + #return "fail!", 418 return new_signup("Please enter a valid email") g.db.add(new_user)