Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit 57faa1a

Browse files
Clear authenticator after invalid credentials
Otherwise, the user has no ability to correct the login credentials.
1 parent fee05df commit 57faa1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/templates/node-server/utils/auth-helper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function init() {
8282
//no user profile yet..
8383
done(null, user);
8484
} else if (response.statusCode === 401) {
85+
clearAuthenticator(req.session);
8586
done(null, false, {
8687
message: 'Invalid credentials'
8788
});

0 commit comments

Comments
 (0)