Closed xbill82 closed 2 years ago
I tested the logout like this:
And everything is working for me. What is the way to have this bug ?
I'm able to reproduce, just stop your backend without restarting it, you won't be able to logout so you won't be able to change env nor user
Isn't it a normal behavior if the backend is not running anymore ?
Well since it stuck you in the current environment on which you can't do anything I don't think so It might be another issue but IMHO we should be able to get back to the environment selector We probably need more info here @xbill82
Well... Technically, @jsatge is not wrong: it makes no sense to end a session against a backend that is not responding. But, try deleting the token from Redis directly. The logout
action is rejected because the token is not valid so... no logout nor login form is shown. The aim is to allow the user "just get out of here", so let's make the logout
function a little bit more resilient.
If the token is invalid (which happens if you restart your backend) the logout action fails and the login page is never displayed until the page is refreshed.