Skip to content

Commit

Permalink
Merge pull request OpenUserJS#715 from Martii/closeLoopAuth
Browse files Browse the repository at this point in the history
Close auth loop

Auto-merge
  • Loading branch information
Martii committed Aug 21, 2015
2 parents 565e63c + 4aefc25 commit 861ba18
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libs/passportVerify.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ exports.verify = function (aId, aStrategy, aUsername, aLoggedIn, aDone) {
function (aAlive, aUser, aRemoved) {
var pos = aUser ? aUser.auths.indexOf(digest) : -1;
var openIdIdPos = -1;
if (aRemoved) { aDone(null, false, 'user was removed'); }
if (aRemoved) {
aDone(null, false, 'User was removed');

// Always return if production... allows for testing in dev with or without dbg
if (isPro) {
return;
}
}

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

0 comments on commit 861ba18

Please sign in to comment.