Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login available even authenticated #4

Open
vialou opened this issue Feb 11, 2021 · 2 comments
Open

Login available even authenticated #4

vialou opened this issue Feb 11, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@vialou
Copy link

vialou commented Feb 11, 2021

the login page should route to the dashboard or root if already authenticated.

@pplonski
Copy link
Contributor

You are right! I will fix this in next post

@pplonski pplonski self-assigned this Feb 11, 2021
@pplonski pplonski added the enhancement New feature or request label Feb 11, 2021
@Elabbasy00
Copy link

Elabbasy00 commented Feb 13, 2021

In case you want a solution now
There are two ways
1- add render prop to Route and redirect user to" / " if isAuth return True otherwise return Login component
-- cons
You will lose the ability to redirect User did not sign and try to access the dashboard login/?next="dashboard"

2 - just connect Login Page and check if isAuth false or true Accordingly, display the page or only pushed to /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants