Skip to content

Commit 4aefc25

Browse files
author
Martii
committed
Close auth loop
* Still allow this in development with or without debug for testing purposes
1 parent 565e63c commit 4aefc25

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libs/passportVerify.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ exports.verify = function (aId, aStrategy, aUsername, aLoggedIn, aDone) {
4444
function (aAlive, aUser, aRemoved) {
4545
var pos = aUser ? aUser.auths.indexOf(digest) : -1;
4646
var openIdIdPos = -1;
47-
if (aRemoved) { aDone(null, false, 'user was removed'); }
47+
if (aRemoved) {
48+
aDone(null, false, 'User was removed');
49+
50+
// Always return if production... allows for testing in dev with or without dbg
51+
if (isPro) {
52+
return;
53+
}
54+
}
4855

4956
// Set up for OpenId to OAuth Migration
5057
if (!digest && ids.length > 0) {

0 commit comments

Comments
 (0)