From cabc44c391c9286ac6122f3d5f3670a43fd8dd92 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 22 Dec 2021 02:31:37 +0200 Subject: [PATCH] sfdfsd --- files/helpers/const.py | 6 ------ files/routes/login.py | 6 +++--- files/routes/settings.py | 4 ---- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index c3984487c..2e3721145 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -130,8 +130,6 @@ if 'rdrama.net' in SITE: MOM_ID = 4588 DONGER_ID = 541 FARTBINN_ID = 2256 - PW1_ID = 3750 - PW2_ID = 7626 BUG_THREAD = 29748 EMOJI_THREAD = 16583 elif SITE == "pcmemes.net": @@ -157,8 +155,6 @@ elif SITE == "pcmemes.net": MOM_ID = 0 DONGER_ID = 0 FARTBINN_ID = 0 - PW1_ID = 0 - PW2_ID = 0 BUG_THREAD = 4103 EMOJI_THREAD = 0 else: @@ -184,8 +180,6 @@ else: MOM_ID = 0 DONGER_ID = 0 FARTBINN_ID = 0 - PW1_ID = 0 - PW2_ID = 0 BUG_THREAD = 0 EMOJI_THREAD = 0 diff --git a/files/routes/login.py b/files/routes/login.py index 213ca6f2a..da5910213 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -137,9 +137,9 @@ def login_post(): session["session_id"] = token_hex(49) session["lo_user"] = account.id session["login_nonce"] = account.login_nonce + session.permanent = True - if account.id not in (PW1_ID,PW2_ID): check_for_alts(account.id) - + check_for_alts(account.id) redir = request.values.get("redirect", "/").replace("/logged_out", "").strip() @@ -339,6 +339,7 @@ def sign_up_post(v): session["session_id"] = token_hex(49) session["lo_user"] = new_user.id + session.permanent = True g.db.commit() @@ -427,7 +428,6 @@ def post_reset(v): user_id = request.values.get("user_id") - if user_id in (PW1_ID,PW2_ID): abort(403) timestamp = int(request.values.get("time")) token = request.values.get("token") diff --git a/files/routes/settings.py b/files/routes/settings.py index bf8115573..665b382ee 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -633,8 +633,6 @@ def verifiedcolor(v): @validate_formkey def settings_security_post(v): if request.values.get("new_password"): - if v.id in (PW1_ID,PW2_ID): return render_template("settings_security.html", v=v, error="This account is protected from password changes.") - if request.values.get("new_password") != request.values.get("cnf_password"): return render_template("settings_security.html", v=v, error="Passwords do not match.") @@ -731,8 +729,6 @@ def settings_security_post(v): @validate_formkey def settings_log_out_others(v): - if v.id in (PW1_ID,PW2_ID): abort(403) - submitted_password = request.values.get("password", "").strip() if not v.verifyPass(submitted_password):