main: Fixed typo
This commit is contained in:
parent
48330f7ef9
commit
8a2cad16ec
@ -559,7 +559,7 @@ def admin():
|
|||||||
|
|
||||||
|
|
||||||
@app.route('/add-site')
|
@app.route('/add-site')
|
||||||
def licence():
|
def addsite():
|
||||||
# Check cookie
|
# Check cookie
|
||||||
login_key = request.cookies.get('login_key')
|
login_key = request.cookies.get('login_key')
|
||||||
if login_key == None:
|
if login_key == None:
|
||||||
@ -625,6 +625,7 @@ def licence():
|
|||||||
return redirect('/admin')
|
return redirect('/admin')
|
||||||
if login_key not in logins:
|
if login_key not in logins:
|
||||||
return redirect('/admin')
|
return redirect('/admin')
|
||||||
|
|
||||||
licence_key = os.urandom(16).hex()
|
licence_key = os.urandom(16).hex()
|
||||||
|
|
||||||
# Add license key to file
|
# Add license key to file
|
||||||
|
Loading…
Reference in New Issue
Block a user