Skip to content

Commit

Permalink
Fix #724 - Logout not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Subiron committed Jan 26, 2020
1 parent 1a894e4 commit 5959e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/plugins/login/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ def user_logout():
# To delete the cookie, send the same, with different date
cookie_value = app.request.get_cookie(app.session_cookie, secret=app.auth_secret)
if cookie_value:
app.response.set_cookie(app.session_cookie, False, secret=app.auth_secret, path='/')
app.response.set_cookie(str(app.session_cookie), False, secret=app.auth_secret, path='/')
else:
app.response.set_cookie(app.session_cookie, '', secret=app.auth_secret, path='/')
app.response.set_cookie(str(app.session_cookie), '', secret=app.auth_secret, path='/')

contact_name = cookie_value.get('login', cookie_value)
logger.info("[WebUI] user '%s' signed out", contact_name)
Expand Down

0 comments on commit 5959e3f

Please sign in to comment.