Commit 00cac240 authored by okhin's avatar okhin 🚴

Slight update on the template - no need for token anymore

parent 40ce9fa1
...@@ -485,7 +485,7 @@ def little_admin(): ...@@ -485,7 +485,7 @@ def little_admin():
db = sqlite3.connect(config['piphone']['db']) db = sqlite3.connect(config['piphone']['db'])
# We need to check if we're admin # We need to check if we're admin
users = db.execute('SELECT api, token, admin FROM users').fetchall() users = db.execute('SELECT api, token, admin FROM users').fetchall()
return template('index', users=users, token=request.params['token']) return template('index', users=users)
@app.post('/admin') @app.post('/admin')
@auth_basic(login_admin) @auth_basic(login_admin)
......
...@@ -62,8 +62,6 @@ ...@@ -62,8 +62,6 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form name="action2" class="form form-vertical" action="admin" method="post"> <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="control-group">
<label>API</label> <label>API</label>
<div class="controls"> <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