Need to add a feature so that a user is required to log in again. However, they cannot be signed out.
I was able to create a new sign in page that does not redirect if they are already logged in.
However, the problem with this approach is that I need to handle failures. Ideally, if the login fails then they this new sign in page would be re-rendered (or the user could be redirected to it).
I think you can try to use something like this: https://github.com/markets/sudo_rails. With this gem, you can require your users to enter again the password for some sensible actions by using the
sudomacro in your controller:It also comes with Devise integration and UI customization.