From 4566cdc67b16dd64b2e56fb471461a59babd6d21 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 12 Nov 2016 00:07:40 +0100 Subject: [PATCH] minor changes --- README.md | 1 + app.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e3bae23..7d57ab1 100644 --- a/README.md +++ b/README.md @@ -34,3 +34,4 @@ You should be able to see the login page at http://localhost:8000. If you want to host this somewhere more prominent following links could help: (someday i might write up some real documentation) * https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension * http://unix.stackexchange.com/questions/47695/how-to-write-startup-script-for-systemd +* http://stackoverflow.com/questions/30763586/starting-bottle-web-server-through-systemd diff --git a/app.py b/app.py index 6606c29..4cd6b0a 100644 --- a/app.py +++ b/app.py @@ -163,6 +163,8 @@ def post_login(): response.set_cookie(cookie_name + "_message", message, secret=cookie_secret, max_age=5) redirect('/') else: + message = { "message": "Email address or password wrong", "alert": "danger" } + response.set_cookie(cookie_name + "_message", message, secret=cookie_secret, max_age=5) redirect('/') # delete cookie @@ -305,7 +307,7 @@ def delete_account(): # run development webserver -run(host='localhost', port=8000, debug=True, reloader=True) +#run(host='localhost', port=8000, debug=True, reloader=True) # run prod server -#run(host='0.0.0.0', port=8000) +run(host='localhost', port=8000)