Do not clear CSRF token on logout (fix for #1303)
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: Roeland Jago Douma <982d370f7dc34a05b4abe8788f899578d515262d@famdouma.nl>

endsguy/server,andreas-p/nextcloud-server,pixelipo/server,michaelletzgus/nextcloud-server,nextcloud/server,endsguy/server,pixelipo/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,endsguy/server,nextcloud/server,nextcloud/server,endsguy/server,michaelletzgus/nextcloud-server,endsguy/server,andreas-p/nextcloud-server,pixelipo/server,pixelipo/server,pixelipo/server,michaelletzgus/nextcloud-server,nextcloud/server,andreas-p/nextcloud-server,michaelletzgus/nextcloud-server