Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
2f8c7cfb
Commit
2f8c7cfb
authored
Oct 14, 2013
by
Jean Michel Rouly
Browse files
Fixed location of autologout toggle, still deactivated.
parent
ad18e65d
Changes
1
Hide whitespace changes
Inline
Side-by-side
wsgi/authenticate.py
View file @
2f8c7cfb
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment