minor changes
This commit is contained in:
parent
fc3daf5f49
commit
4566cdc67b
|
@ -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)
|
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
|
* 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://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
6
app.py
|
@ -163,6 +163,8 @@ def post_login():
|
||||||
response.set_cookie(cookie_name + "_message", message, secret=cookie_secret, max_age=5)
|
response.set_cookie(cookie_name + "_message", message, secret=cookie_secret, max_age=5)
|
||||||
redirect('/')
|
redirect('/')
|
||||||
else:
|
else:
|
||||||
|
message = { "message": "Email address or password wrong", "alert": "danger" }
|
||||||
|
response.set_cookie(cookie_name + "_message", message, secret=cookie_secret, max_age=5)
|
||||||
redirect('/')
|
redirect('/')
|
||||||
|
|
||||||
# delete cookie
|
# delete cookie
|
||||||
|
@ -305,7 +307,7 @@ def delete_account():
|
||||||
|
|
||||||
|
|
||||||
# run development webserver
|
# 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 prod server
|
||||||
#run(host='0.0.0.0', port=8000)
|
run(host='localhost', port=8000)
|
||||||
|
|
Reference in New Issue