Bug #16530

[Foreman] Redirect to dashboard on visiting "users/login" for an active session.

Added by Swapnil Abnave 6 months ago. Updated 6 months ago.

Status:Closed
Priority:Normal
Assigned To:Swapnil Abnave
Category:Authorization
Target version:-
Difficulty:trivial Bugzilla link:1375154
Found in release:1.13.0 Pull request:https://github.com/theforeman/foreman/pull/3848
Story points-
Velocity based estimate-
Release1.14.0Release relationshipAuto

Description

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
https://localhost:3000/users/login
3. Hit enter

Actual results:
User should see dashboard or home page.

Expected results:
Login page is visible. Which should not be the case.

Associated revisions

Revision be36ce98
Added by Swapnil Abnave 6 months ago

Fixes #16530 - Redirect login page back if active session

History

#1 Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3848 added

#2 Updated by Dominic Cleal 6 months ago

  • Release deleted (1.14.0)

#3 Updated by Anonymous 6 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal 6 months ago

  • Release set to 1.14.0

Also available in: Atom PDF