Commit e5cf3d90 authored by okhin's avatar okhin 🚴
Browse files

Merge branch '6-fix-auth-for-admin' into 'master'

Slight update on the template - no need for token anymore

Closes #6

See merge request !10
parents d2eeede9 00cac240
Pipeline #933 passed with stage
in 4 seconds
......@@ -485,7 +485,7 @@ def little_admin():
db = sqlite3.connect(config['piphone']['db'])
# We need to check if we're admin
users = db.execute('SELECT api, token, admin FROM users').fetchall()
return template('index', users=users, token=request.params['token'])
return template('index', users=users)'/admin')
......@@ -62,8 +62,6 @@
<div class="panel-body">
<form name="action2" class="form form-vertical" action="admin" method="post">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="api" value="{{api}}">
<div class="control-group">
<div class="controls">
Markdown is supported
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