Skip to content
Unverified Commit bb94b397 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Do not clear CSRF token on logout (fix for #1303)



This is a hacky way to allow the use case of #1303.

What happens is

1. User tries to login
2. PreLoginHook kicks in and figures out that the user need to change
their LDAP password or whatever => redirects user
3. While loading the redirect some logic of ours kicks in and logouts
the user (thus clearing the session).
4. We render the new page but now the session and the page disagree
about the CSRF token

This is kind of hacky but I don't think it introduces new attack
vectors.

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent af16416d
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