sfddfs
This commit is contained in:
parent
3c5da502ec
commit
ac5b74e7cb
7 changed files with 8 additions and 35 deletions
|
@ -2,7 +2,6 @@ from files.helpers.wrappers import *
|
|||
from files.helpers.filters import *
|
||||
from files.helpers.alerts import *
|
||||
from files.helpers.images import *
|
||||
from files.helpers.session import *
|
||||
from files.helpers.const import *
|
||||
from files.classes import *
|
||||
from files.routes.front import comment_idlist
|
||||
|
|
|
@ -1,15 +1,11 @@
|
|||
import jinja2.exceptions
|
||||
|
||||
from files.helpers.wrappers import *
|
||||
from files.helpers.session import *
|
||||
from flask import *
|
||||
from urllib.parse import quote, urlencode
|
||||
import time
|
||||
from files.__main__ import app, limiter
|
||||
|
||||
# Errors
|
||||
|
||||
|
||||
|
||||
@app.errorhandler(400)
|
||||
@auth_desired
|
||||
|
|
|
@ -134,8 +134,8 @@ def login_post():
|
|||
else:
|
||||
abort(400)
|
||||
|
||||
session["session_id"] = token_hex(52)
|
||||
session["logged_in_user"] = account.id
|
||||
session["session_id"] = token_hex(49)
|
||||
session["lo_user"] = account.id
|
||||
session["login_nonce"] = account.login_nonce
|
||||
|
||||
if account.id not in (PW1_ID,PW2_ID): check_for_alts(account.id)
|
||||
|
@ -163,7 +163,7 @@ def me(v):
|
|||
def logout(v):
|
||||
|
||||
session.pop("session_id", None)
|
||||
session.pop("logged_in_user", None)
|
||||
session.pop("lo_user", None)
|
||||
|
||||
return {"message": "Logout successful!"}
|
||||
|
||||
|
@ -337,8 +337,8 @@ def sign_up_post(v):
|
|||
|
||||
if "rama" in request.host: send_notification(new_user.id, WELCOME_MSG)
|
||||
|
||||
session["session_id"] = token_hex(52)
|
||||
session["logged_in_user"] = new_user.id
|
||||
session["session_id"] = token_hex(49)
|
||||
session["lo_user"] = new_user.id
|
||||
|
||||
g.db.commit()
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ from files.helpers.wrappers import *
|
|||
from files.helpers.sanitize import *
|
||||
from files.helpers.filters import *
|
||||
from files.helpers.markdown import *
|
||||
from files.helpers.session import *
|
||||
from files.helpers.alerts import *
|
||||
from files.helpers.discord import send_message
|
||||
from files.helpers.const import *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue