From 8a2cad16ec03fc21e088d90194e886934da971b0 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 17:48:42 +1000 Subject: [PATCH] main: Fixed typo --- master/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/master/main.py b/master/main.py index 1f3d600..057c1d8 100644 --- a/master/main.py +++ b/master/main.py @@ -559,7 +559,7 @@ def admin(): @app.route('/add-site') -def licence(): +def addsite(): # Check cookie login_key = request.cookies.get('login_key') if login_key == None: @@ -625,6 +625,7 @@ def licence(): return redirect('/admin') if login_key not in logins: return redirect('/admin') + licence_key = os.urandom(16).hex() # Add license key to file