forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-12-23 21:17:29 +02:00
parent 9793446ff5
commit 2b0cd9d4de
2 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,6 @@ app.config['MAX_CONTENT_LENGTH'] = 8 * 1024 * 1024
app.config["SESSION_COOKIE_SECURE"] = True
app.config["SESSION_COOKIE_SAMESITE"] = "Lax"
app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365
app.config["SESSION_REFRESH_EACH_REQUEST"] = True
app.config["SLOGAN"] = environ.get("SLOGAN", "").strip()
app.config["DEFAULT_COLOR"] = environ.get("DEFAULT_COLOR", "ff0000").strip()
app.config["DEFAULT_THEME"] = environ.get("DEFAULT_THEME", "midnight").strip()

View File

@ -134,10 +134,10 @@ def login_post():
else:
abort(400)
session.permanent = True
session["session_id"] = token_hex(49)
session["lo_user"] = account.id
session["login_nonce"] = account.login_nonce
session.permanent = True
check_for_alts(account.id)
@ -337,9 +337,9 @@ def sign_up_post(v):
if "rama" in request.host: send_notification(new_user.id, WELCOME_MSG)
session.permanent = True
session["session_id"] = token_hex(49)
session["lo_user"] = new_user.id
session.permanent = True
g.db.commit()