Revert "log ppl into deux automatically"

This reverts commit 86f7e627ea.
master
Aevann1 2022-07-13 20:33:31 +02:00
parent cd94fa535f
commit f5bacd8938
2 changed files with 0 additions and 14 deletions

View File

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

View File

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