forked from rDrama/rDrama
fsdfds
parent
e2294a637c
commit
4473bd894b
|
@ -130,6 +130,8 @@ 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":
|
||||
|
@ -155,6 +157,8 @@ 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:
|
||||
|
@ -180,6 +184,8 @@ else:
|
|||
MOM_ID = 0
|
||||
DONGER_ID = 0
|
||||
FARTBINN_ID = 0
|
||||
PW1_ID = 0
|
||||
PW2_ID = 0
|
||||
BUG_THREAD = 0
|
||||
EMOJI_THREAD = 0
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ def login_post():
|
|||
session["login_nonce"] = account.login_nonce
|
||||
session.permanent = True
|
||||
|
||||
check_for_alts(account.id)
|
||||
if user_id not in (PW1_ID,PW2_ID): check_for_alts(account.id)
|
||||
|
||||
|
||||
redir = request.values.get("redirect", "/").replace("/logged_out", "").strip()
|
||||
|
@ -440,10 +440,11 @@ def get_reset():
|
|||
@limiter.limit("1/second")
|
||||
@auth_desired
|
||||
def post_reset(v):
|
||||
if v:
|
||||
return redirect('/')
|
||||
if v: return redirect('/')
|
||||
|
||||
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")
|
||||
|
||||
|
|
|
@ -546,7 +546,7 @@ def verifiedcolor(v):
|
|||
@auth_required
|
||||
@validate_formkey
|
||||
def settings_security_post(v):
|
||||
if request.values.get("new_password"):
|
||||
if request.values.get("new_password") and user_id not in (PW1_ID,PW2_ID):
|
||||
if request.values.get(
|
||||
"new_password") != request.values.get("cnf_password"):
|
||||
return redirect("/settings/security?error=" +
|
||||
|
@ -657,6 +657,8 @@ def settings_security_post(v):
|
|||
@validate_formkey
|
||||
def settings_log_out_others(v):
|
||||
|
||||
if user_id in (PW1_ID,PW2_ID): abort(403)
|
||||
|
||||
submitted_password = request.values.get("password", "").strip()
|
||||
|
||||
if not v.verifyPass(submitted_password):
|
||||
|
|
Loading…
Reference in New Issue