diff --git a/master/main.py b/master/main.py index 4755bf0..40697a1 100644 --- a/master/main.py +++ b/master/main.py @@ -447,10 +447,10 @@ def home(): return html # Admin page -@app.route('/admin',) +@app.route('/admin', methods=['GET', 'POST']) def admin(): # Check if logged in - loggin_key = request.cookies.get('login_key') + login_key = request.cookies.get('login_key') if request.method == 'POST': # Handle login @@ -465,9 +465,9 @@ def admin(): return resp - if loggin_key == None: + if login_key == None: return "