Commit 2f8c7cfb authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Fixed location of autologout toggle, still deactivated.

parent ad18e65d
......@@ -51,10 +51,10 @@ def application(environ, start_response):
cookie_value = cookie["user"].OutputString()
hash_value = cookie["user"].value
# unregister the user, in case they're already in
#library.deactivate_user( hash_value )
if( library.user_registered( usr ) ):
# register the hashed user with the SQL database
# unregister the user, in case they're already in
###library.deactivate_user( hash_value )
# register the hashed user with the SQL database
library.activate_user( hash_value, usr )
# push the cookie to the user and redirect
status = '303 See Other'
......
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