Closed talpasco closed 6 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is important and should not be stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS
file at the top-level of this repository.
Hi,
Couldn't flash the error message after a failed login attempt. And then I realized that the strategy is being set 'hard-coded' ('loopback-component-oauth2\lib\oauth2-loopback.js', line 828).
And so, I modified it to use the 'local' strategy, and to flash errors... and voila, it works. This is how:
app.post(options.loginPath || '/login', passport.authenticate('local', {successReturnToOrRedirect: '/', failureRedirect: options.loginPage || '/login', failureFlash: true}));
I was wondering if there is a way to configure it, outside of the node-module scope.
Thanks, Tal