diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 27bdcf9fc..7bab3a15b 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -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) diff --git a/files/routes/login.py b/files/routes/login.py index 9e5fe498c..c06c50d32 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -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} \ No newline at end of file