summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomek Dubrownik <t.dubrownik@gmail.com>2012-01-29 02:58:56 +0100
committerTomek Dubrownik <t.dubrownik@gmail.com>2012-01-29 02:58:56 +0100
commita826118cf670e4da8d1206ef79a73e7f4c02e771 (patch)
treecaf3e618e39a5bbc53b15e0458b6908d146eae57
parent6912034ced9d7856722814bb61ebb51159630dd2 (diff)
downloadcheckinator-a826118cf670e4da8d1206ef79a73e7f4c02e771.tar.gz
checkinator-a826118cf670e4da8d1206ef79a73e7f4c02e771.tar.bz2
checkinator-a826118cf670e4da8d1206ef79a73e7f4c02e771.zip
login now possible outside of hs
-rw-r--r--at.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/at.py b/at.py
index e702228..b99b53e 100644
--- a/at.py
+++ b/at.py
@@ -194,7 +194,6 @@ def register():
return register_form()
@app.route('/login', methods=['GET'])
-@restrict_to_hs
def login_form():
return render_template('login.html', **req_to_ctx())
@@ -204,7 +203,6 @@ def get_user(conn, login, password):
return row and User(row['userid'], row['login'], None, row['url'])
@app.route('/login', methods=['POST'])
-@restrict_to_hs
def login():
login = request.form.get('login', '').lower()
pwd = request.form.get('password', '')
@@ -220,7 +218,6 @@ def login():
return login_form()
@app.route('/logout')
-@restrict_to_hs
def logout():
session.clear()
return redirect('/')