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

action=login error #151

Open
initialized-soul opened this issue Jun 5, 2016 · 2 comments
Open

action=login error #151

initialized-soul opened this issue Jun 5, 2016 · 2 comments

Comments

@initialized-soul
Copy link

If I'm using local authentication and POST to /auth/local?action=login I get an 'Invalid action' error as per line 212 of passport.js which does not accept 'login' as a valid parameter. However, as per the sails-auth code, I need to specify 'login' for the action if I want to redirect users back to the login page after unsuccessful authentication. It seems that there is an incompatibility there, no?

@fernandolguevara
Copy link
Contributor

#161

@rsibanez89
Copy link

rsibanez89 commented Oct 24, 2016

For redirecting to /login page define the next parameter.
<form action="/auth/local?next=/login" method="post">

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

3 participants