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

Commit 08eb2c5

Browse files
authored
Merge pull request #514 from patrickmcelwee/patch-1
#513: Clear authenticator after invalid credentials
2 parents fee05df + 57faa1a commit 08eb2c5

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)