Addressed bugs with bcrypt-nodejs and changed crypto.js to password.js

This commit is contained in:
Fosco Marotto
2016-02-01 11:24:26 -08:00
parent 7f01a67c0f
commit cb1079a6d3
4 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ var rack = require('hat').rack();
var Auth = require('./Auth');
var cache = require('./cache');
var Config = require('./Config');
var crypto = require('./crypto');
var passwordCrypto = require('./password');
var facebook = require('./facebook');
var Parse = require('parse/node');
var triggers = require('./triggers');
@@ -300,7 +300,7 @@ RestWrite.prototype.transformUser = function() {
if (this.query) {
this.storage['clearSessions'] = true;
}
return crypto.hash(this.data.password).then((hashedPassword) => {
return passwordCrypto.hash(this.data.password).then((hashedPassword) => {
this.data._hashed_password = hashedPassword;
delete this.data.password;
});