Commit 073fba5c authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

secure app checkbox fixed

parent 05333766
...@@ -171,7 +171,7 @@ def new_application(): ...@@ -171,7 +171,7 @@ def new_application():
secure_key = misc.gen_skey_b64(16) secure_key = misc.gen_skey_b64(16)
secure = False secure = False
if request.form.getlist('secure') and request.form.getlist('secure')[0] == 'true': if request.form.getlist('secure') and request.form.getlist('secure')[0] == 'on':
secure = True secure = True
res = ad.create(request.form['appname'], appkey, session['name'], request.form['appdesc'], secure, secure_key) res = ad.create(request.form['appname'], appkey, session['name'], request.form['appdesc'], secure, secure_key)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment