Skip to content

Login/Signup/Recover/Reset accessible after authentication #18

@inkiltie

Description

@inkiltie

Describe the bug
If you manually type /login, /signup, /recover-password in URL address while being authenticated you will be directed to these pages and stay on them without any redirect. this.props.isLoggedIn is undefined in this case in PublicRoute.js.

Same thing works if you click on "Reset Password" in the email let's say for the second time, you also land on /reset-password/token while being authenticated.

Is it because of local state, slow Redux or something else? In Meteor Pup it was easy cause userId was built-in and always there.

To Reproduce
Steps to reproduce the behavior:

  1. Go to localhost:5000/documents
  2. Type localhost:5000/login in URL

Expected behavior
Redirect to default authenticated page without loading 'Login' page UI

Desktop (please complete the following information):

  • OS: MacOS 11.4
  • Browser Chrome
  • Version 90.0.4430.212

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions