New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic sign-out after sign-in #273
Comments
Could you please work in a failing test case or a patch? |
yup, looking into it |
I guess the simpler solution would be always allow the sign_out action to be executed, doesn't matter if the user is signed in or not. It's supposed to work this way currently, but for someone reason it's not, can you please investigate? |
You are right, that would be the best way. No matter if there was a timeout, sign-out action should always redirect to after_sign_out_path_for, which is expected by the user. Throwing the sign_in page after a sign_out click is a no-no. However, I see two issues here.
Feels like this checking for stored_location and determining the right path should be a part of after_sign_in_path_for.
Adding here another check if the request is a sign-out might work... Haven't directly worked with warden, got to check out this deeper. Cheers |
Check if the user is already signing out before timing out his connection, closed by 5e1ef93. |
If a timeout occurs, and user is not aware of it, clicking on sign out will bring up a sign-in page; after the signed-in the user is redirected out with signing out.
It's silly, but there are two things we could do:
The text was updated successfully, but these errors were encountered: