reenable client security (OOPS)
parent
d65d9c79c0
commit
2732c3a149
|
@ -51,13 +51,13 @@ class ClientAPISecurity:
|
||||||
return
|
return
|
||||||
if request.path.startswith('/site/'): return
|
if request.path.startswith('/site/'): return
|
||||||
|
|
||||||
# try:
|
try:
|
||||||
# if not hmac.compare_digest(request.headers['token'], client_api.clientToken):
|
if not hmac.compare_digest(request.headers['token'], client_api.clientToken):
|
||||||
# if not hmac.compare_digest(request.form['token'], client_api.clientToken):
|
if not hmac.compare_digest(request.form['token'], client_api.clientToken):
|
||||||
# abort(403)
|
abort(403)
|
||||||
# except KeyError:
|
except KeyError:
|
||||||
# if not hmac.compare_digest(request.form['token'], client_api.clientToken):
|
if not hmac.compare_digest(request.form['token'], client_api.clientToken):
|
||||||
# abort(403)
|
abort(403)
|
||||||
|
|
||||||
@client_api_security_bp.after_app_request
|
@client_api_security_bp.after_app_request
|
||||||
def after_req(resp):
|
def after_req(resp):
|
||||||
|
|
Loading…
Reference in New Issue