passport-activedirectory
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -124,4 +124,7 @@ 'use strict'; | ||
return _this._ad.authenticate(userProfile._json.dn, password, function (err, auth) { | ||
if (err) return _this.error(err); | ||
if (!auth) return _this.fail('Authentication failed for ' + username); | ||
var authFailureMessage = 'Authentication failed for ' + username; | ||
if (err) { | ||
return err.prototype.name === 'InvalidCredentialsError' ? _this.fail(authFailureMessage + ': [' + err.message + ']') : _this.error(err); | ||
} | ||
if (!auth) return _this.fail(authFailureMessage); | ||
return verify(userProfile); | ||
@@ -128,0 +131,0 @@ }); |
{ | ||
"name": "passport-activedirectory", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Active Directory strategy for passport.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
11410
128