Make access to login route impossible if user is already authenticated #3

Closed
opened 2024-10-14 15:05:43 +02:00 by florian · 1 comment
Owner

Problem

If the user is already authenticated, and if he tries to go to the login page, he actually can access this page. He should be redirected to home page.

Scenario

  • open the app
  • go to login page
  • type login and password
  • clic on Validate button
  • change url in browser to set <url>/login

Acceptance test

When url <url>/login is validated, login page is loadded and it redirects the user to home page (<url>/home)

# Problem If the user is already authenticated, and if he tries to go to the login page, he actually can access this page. He should be redirected to home page. # Scenario - open the app - go to login page - type login and password - clic on `Validate` button - change url in browser to set `<url>/login` # Acceptance test When url `<url>/login` is validated, login page is loadded and it redirects the user to home page (`<url>/home`)
Author
Owner

Fixed by commit 3865c26397.

Fixed by commit `3865c26397`.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: florian/codiki-hexagonal#3