Fix auth because I am dumb

This commit is contained in:
Dominik V. Salonen 2016-09-23 13:17:27 +02:00
parent 250adf01cf
commit dcf3a02f9d
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -69,7 +69,7 @@ def allowed_file(filename):
def upload_file(): def upload_file():
if request.method == 'POST': if request.method == 'POST':
print_log('Web', 'New file received') print_log('Web', 'New file received')
if not application.auth(request.headers.get('X-Hyozan-Auth'), config["KEY"]): if not application.basicauth(request.headers.get('X-Hyozan-Auth'), config["KEY"]):
abort(403) abort(403)
data = dict() data = dict()
file = request.files['file'] file = request.files['file']