klark-js-plugins
Advanced tools
Comparing version 1.0.14 to 1.0.15
{ | ||
"name": "klark-js-plugins", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Plugin modules for KlarkJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -280,10 +280,12 @@ 'use strict'; | ||
q.resolve() | ||
.then(() => ({ | ||
user, | ||
token: $crypto.randomBytes(8) | ||
})) | ||
.then(function({user, token}) { | ||
user.password = token.toString('hex'); | ||
return user.save(); | ||
.then(function() { | ||
return { | ||
user: user, | ||
token: $crypto.randomBytes(8) | ||
}; | ||
}) | ||
.then(function(obj) { | ||
obj.user.password = obj.token.toString('hex'); | ||
return obj.user.save(); | ||
}) | ||
.catch(function(reason) { | ||
@@ -290,0 +292,0 @@ res.locals.errors.add('DB_ERROR', reason.errors || reason); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79004
1901