socialnerds/accounts
socialnerds
/
accounts
Archived
1
0
Fork 0

minor changes

This commit is contained in:
david 2016-11-12 00:07:40 +01:00
parent fc3daf5f49
commit 4566cdc67b
2 changed files with 5 additions and 2 deletions

View File

@ -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

6
app.py
View File

@ -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)