This commit is contained in:
Aevann1 2021-09-19 22:18:29 +02:00
parent 6b7ae51d61
commit dcbf6753e9
3 changed files with 12 additions and 12 deletions

View file

@ -133,7 +133,9 @@ def login_post():
abort(400)
if account.is_banned and account.unban_utc > 0 and time.time() > account.unban_utc:
account.unban()
account.is_banned = 0
account.unban_utc = 0
g.db.add(account)
# set session and user id
session["user_id"] = account.id