mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Closes issue #52
This commit is contained in:
@@ -47,6 +47,8 @@ def setup():
|
|||||||
# admin = Teams.query.filter_by(admin=True).first()
|
# admin = Teams.query.filter_by(admin=True).first()
|
||||||
|
|
||||||
if not is_setup():
|
if not is_setup():
|
||||||
|
if not session.get('nonce'):
|
||||||
|
session['nonce'] = sha512(os.urandom(10))
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
ctf_name = request.form['ctf_name']
|
ctf_name = request.form['ctf_name']
|
||||||
ctf_name = Config('ctf_name', ctf_name)
|
ctf_name = Config('ctf_name', ctf_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user