larvituser
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -277,2 +277,7 @@ 'use strict'; | ||
tasks.push(function(cb) { | ||
if ( ! hashedPassword) { | ||
cb(); | ||
return; | ||
} | ||
checkPassword(password, hashedPassword, function(err, res) { | ||
@@ -279,0 +284,0 @@ if (err) { |
{ | ||
"name": "larvituser", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Mikael 'Lilleman' Göransson", |
@@ -223,2 +223,10 @@ 'use strict'; | ||
it('should fail to log in a non existing user by username and password', function(done) { | ||
userLib.fromUserAndPass('does_not_exist', 'foobar', function(err, user) { | ||
if (err) throw err; | ||
assert(user === false, 'user should be false'); | ||
done(); | ||
}); | ||
}); | ||
it('should log in user by field', function(done) { | ||
@@ -225,0 +233,0 @@ userLib.fromField('firstname', 'migal', function(err, user) { |
54559
16
1405