larvituser
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -184,3 +184,3 @@ 'use strict'; | ||
if (err) { | ||
log.error('larvituser: addUserField() - ' + err.message, err); | ||
log.error('larvituser: addUserField() - ' + err.message); | ||
return; | ||
@@ -413,3 +413,3 @@ } | ||
if (err) { | ||
log.error('larvituser: checkPassword() - ' + err.message, err); | ||
log.error('larvituser: checkPassword() - ' + err.message); | ||
callback(err); | ||
@@ -451,3 +451,3 @@ return; | ||
if (err) { | ||
log.error('larvituser: create() - ' + err.message, err); | ||
log.error('larvituser: create() - ' + err.message); | ||
callback(err); | ||
@@ -461,3 +461,3 @@ return; | ||
if (err) { | ||
log.error('larvituser: create() - ' + err.message, err); | ||
log.error('larvituser: create() - ' + err.message); | ||
callback(err); | ||
@@ -511,3 +511,3 @@ return; | ||
err = new Error('Trying to create user with empty username'); | ||
log.warn('larvituser: create() - ' + err.message, err); | ||
log.warn('larvituser: create() - ' + err.message); | ||
callback(err); | ||
@@ -523,3 +523,3 @@ return; | ||
err = new Error('Trying to create user with taken username: "' + username + '"'); | ||
log.info('larvituser: create() - ' + err.message, err); | ||
log.info('larvituser: create() - ' + err.message); | ||
callback(err); | ||
@@ -570,3 +570,3 @@ } else { | ||
err.sql = sql; | ||
log.debug('larvituser: create() - ' + err.message, err); | ||
log.debug('larvituser: create() - ' + err.message); | ||
callback(null, false); | ||
@@ -624,3 +624,3 @@ return; | ||
err.sql = sql; | ||
log.verbose('larvituser: fromUserAndPass() - ' + err.message, err); | ||
log.verbose('larvituser: fromUserAndPass() - ' + err.message); | ||
callback(err); | ||
@@ -632,3 +632,3 @@ return; | ||
if (err) { | ||
log.error('larvituser: fromUserAndPass() - ' + err.message, err); | ||
log.error('larvituser: fromUserAndPass() - ' + err.message); | ||
callback(err); | ||
@@ -644,3 +644,3 @@ return; | ||
err = new Error('Login failed, wrong password. Username: "' + username + '"'); | ||
log.info('larvituser: fromUserAndPass() - ' + err.message, err); | ||
log.info('larvituser: fromUserAndPass() - ' + err.message); | ||
callback(err); | ||
@@ -677,3 +677,3 @@ } | ||
err.sql = sql; | ||
log.debug('larvituser: fromUsername() - ' + err.message, err); | ||
log.debug('larvituser: fromUsername() - ' + err.message); | ||
callback(err); | ||
@@ -805,3 +805,3 @@ return; | ||
if (err) { | ||
log.error('larvituser: hashPassword() - ' + err.message, err); | ||
log.error('larvituser: hashPassword() - ' + err.message); | ||
callback(err); | ||
@@ -813,3 +813,3 @@ return; | ||
if (err) { | ||
log.error('larvituser: hashPassword() - ' + err.message, err); | ||
log.error('larvituser: hashPassword() - ' + err.message); | ||
callback(err); | ||
@@ -816,0 +816,0 @@ return; |
@@ -31,5 +31,5 @@ { | ||
}, | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"readmeFilename": "README.md", | ||
"license": "MIT" | ||
} |
30679