[Foreman] Redirect to dashboard on visiting "users/login" for an active session.
|Assigned To:||Swapnil Abnave|
|Found in release:||1.13.0||Pull request:||https://github.com/theforeman/foreman/pull/3848|
|Velocity based estimate||-|
If there's a valid session already present(i.e. user has already logged-in).
Then visiting the login page again(without singing-out) should redirect the user to dashboard page.
Steps to Reproduce:
1. Login with any user
2. Change the url from whatever to /users/login
Example: if url is https://localhost:3000/hosts
then change it to
3. Hit enter
User should see dashboard or home page.
Login page is visible. Which should not be the case.