After signin, can visit all rodauth views #149
-
Hi Janko, this is my first time using rodauth-rails. I have been following the guide, but there is some odds in my rails app:
But no error detected on my terminal.
Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
By default, Rodauth doesn't prevent access to login and create account pages when the user is logged in. If you want, you can override already_logged_in do
set_redirect_error_flash "Already logged in"
redirect "/"
end
I don't know why is that, it doesn't seem like an issue in rodauth-rails. Can you reproduce it in the official demo app? |
Beta Was this translation helpful? Give feedback.
By default, Rodauth doesn't prevent access to login and create account pages when the user is logged in. If you want, you can override
already_logged_in
hook to do a redirect, for example:I don't know why is that, it doesn't seem like an issue in rodauth-rails. Can you reproduce it in the official demo app?