Closed ravinhwg closed 11 months ago
I think I remember this has been brought up before. Why do you think it's a problem that a signed in user can visit the sign-in page?
Hi Mikkel,
first of, thank you very much for giving your attention to this issue. So to answer your question I think if we go with the standards it is an intuitive choice to prevent the user from navigating to auth routes other than the /sign_out
.
I mean it's a behaviour enforced in almost all websites.
🤷♂️ I don't know, I don't think it's a problem. Intuitive and common aren't really saying anything about whether it's a good idea or not. If others feel it's a problem as well, feel free to jump in.
Hi, I'm new to rails development. I've tried to find a solution to the above problem but have not been able to solve it so far.
Steps to reproduce,
Signed in user can still visit the login page. What is the correct way to stop it? I got a bit wacky and implemented a logic where it prevents rendering the form in the view but there must be a proper way.
thank you in advance.