mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-10 11:37:38 +02:00
update to 6.8.27
This commit is contained in:
@@ -286,25 +286,21 @@ class MemcachedSessionInterface(SessionInterface):
|
||||
session_id = self._get_signer(app).sign(want_bytes(session.sid))
|
||||
else:
|
||||
session_id = session.sid
|
||||
from BTPanel import request, g, get_input
|
||||
from BTPanel import request,g,get_input
|
||||
if 'auth_error' in g: return
|
||||
if request.path in ['/', '/tips','/robots.txt']: return
|
||||
if request.path in ['/', '/tips', '/robots.txt', '/favicon.ico', '/hook', '/close', '/down/']: return
|
||||
if request.path in ['/public']:
|
||||
get = get_input()
|
||||
if 'get_ping' in get: return
|
||||
if not 'get_ping' in get: return
|
||||
if response.status_code in [401]: return
|
||||
|
||||
if request.full_path.find('/login?tmp_token=') != 0:
|
||||
if response.status_code not in [200, 308]: return
|
||||
if response.status_code not in [200,308]: return
|
||||
else:
|
||||
if response.status_code not in [302, 301]: return
|
||||
if response.status_code not in [302,301]: return
|
||||
if secure: samesite = 'None'
|
||||
|
||||
if response.status_code not in [200,302]: return
|
||||
if not request.cookies.get(app.session_cookie_name):
|
||||
if request.full_path.find('/login?tmp_token=') == 0:
|
||||
samesite = 'None'
|
||||
secure = True
|
||||
response.set_cookie(app.session_cookie_name, session_id,
|
||||
expires=expires, httponly=httponly,
|
||||
domain=domain, path=path, secure=secure,samesite=samesite)
|
||||
|
||||
Reference in New Issue
Block a user