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

How to redirect if already logged in #22

Open
jaydeepesparkinfo opened this issue Aug 5, 2016 · 0 comments
Open

How to redirect if already logged in #22

jaydeepesparkinfo opened this issue Aug 5, 2016 · 0 comments

Comments

@jaydeepesparkinfo
Copy link

Hi there ,
My configuration is
$authProvider.signinUrl = 'laravel-frontend/public/api/frontauthenticate';
$authProvider.signinState = 'login';
$authProvider.signinRoute = '/login';
$authProvider.signinTemplateUrl = 'app/shared/views/login.html';
$authProvider.afterSigninRedirectTo = 'dashboard';
$authProvider.afterSignoutRedirectTo = 'login';
so after login it goes to dashboard but then when I write '/login' then it opens login page.

How can I redirect it to dashboard if it is already looged in .

Thanks

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

No branches or pull requests

1 participant