main: Fixed typo
All checks were successful
Build Docker / Build Master (push) Successful in 27s
Build Docker / Build Bot (push) Successful in 26s

This commit is contained in:
Nathan Woodburn 2023-08-25 17:48:42 +10:00
parent 48330f7ef9
commit 8a2cad16ec
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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