remotes/1693045480750635534/spooky-22
Aevann1 2021-12-22 02:31:37 +02:00
parent 1f742aee09
commit 6ceff2519e
3 changed files with 3 additions and 13 deletions

View File

@ -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

View File

@ -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")

View File

@ -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):