right
This commit is contained in:
parent
1e43963535
commit
200c2461b8
222 changed files with 115 additions and 112 deletions
|
@ -330,6 +330,8 @@ def sign_up_post(v):
|
|||
session["history"] = []
|
||||
else: admin_level=0
|
||||
|
||||
profileurl = '/e/' + random.choice(marseys_const) + '.webp'
|
||||
|
||||
new_user = User(
|
||||
username=username,
|
||||
original_username = username,
|
||||
|
@ -337,7 +339,8 @@ def sign_up_post(v):
|
|||
password=request.values.get("password"),
|
||||
email=email,
|
||||
referred_by=ref_id or None,
|
||||
ban_evade = int(any((x.is_banned or x.shadowbanned) and not x.unban_utc for x in g.db.query(User).filter(User.id.in_(session.get("history", []))).all() if x))
|
||||
ban_evade = int(any((x.is_banned or x.shadowbanned) and not x.unban_utc for x in g.db.query(User).filter(User.id.in_(session.get("history", []))).all() if x)),
|
||||
profileurl=profileurl
|
||||
)
|
||||
|
||||
g.db.add(new_user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue