Skip to content

Commit

Permalink
6.9.26
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Jul 11, 2019
1 parent 274502b commit 2f2df26
Show file tree
Hide file tree
Showing 42 changed files with 4,655 additions and 306 deletions.
3 changes: 2 additions & 1 deletion BTPanel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from werkzeug.contrib.cache import SimpleCache
from werkzeug.wrappers import Response
from flask_socketio import SocketIO,emit,send
dns_client = None

#设置BasicAuth
basic_auth_conf = 'config/basic_auth.json'
Expand Down Expand Up @@ -983,7 +984,7 @@ def check_csrf():

def publicObject(toObject,defs,action=None,get = None):
if 'request_token' in session and 'login' in session:
if not check_csrf(): return public.ReturnJson(False,'Csrf-Token error.'),json_header
if not check_csrf(): return public.ReturnJson(False,'CSRF校验失败,请重新登录面板'),json_header

if not get: get = get_input()
if action: get.action = action
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2f2df26

Please sign in to comment.