forked from MarseyWorld/MarseyWorld
parent
cd94fa535f
commit
f5bacd8938
|
@ -22,14 +22,6 @@ def get_logged_in_user():
|
|||
v.client = client
|
||||
else:
|
||||
lo_user = session.get("lo_user")
|
||||
|
||||
if SITE == 'deuxrama.net' and not lo_user and not session.get("checked"):
|
||||
session["checked"] = True
|
||||
id = requests.get('https://rdrama.net/check_loggedin').json()['id']
|
||||
if id and id <= 12353:
|
||||
session["lo_user"] = id
|
||||
lo_user = session["lo_user"]
|
||||
|
||||
if lo_user:
|
||||
id = int(lo_user)
|
||||
v = get_account(id)
|
||||
|
|
|
@ -562,9 +562,3 @@ def reset_2fa():
|
|||
return render_template("message_success.html",
|
||||
title="Two-factor authentication removed.",
|
||||
message="Login normally to access your account.")
|
||||
|
||||
|
||||
@app.get("/check_loggedin")
|
||||
@auth_desired
|
||||
def check_loggedin(v):
|
||||
return {"id": v.id if v else None}
|
Loading…
Reference in New Issue