mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
lint fixes & bcrypt-nodejs
This commit is contained in:
parent
cf9c2462fa
commit
7cbbb3af4e
@ -2,9 +2,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
var _ = require('underscore'),
|
||||
GhostBookshelf,
|
||||
BookshelfBase,
|
||||
var GhostBookshelf,
|
||||
Bookshelf = require('bookshelf'),
|
||||
config = require('../../../config');
|
||||
|
||||
|
@ -5,8 +5,7 @@
|
||||
Settings,
|
||||
GhostBookshelf = require('./base'),
|
||||
_ = require('underscore'),
|
||||
when = require('when'),
|
||||
SettingsProvider;
|
||||
when = require('when');
|
||||
|
||||
Setting = GhostBookshelf.Model.extend({
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
_ = require('underscore'),
|
||||
when = require('when'),
|
||||
nodefn = require('when/node/function'),
|
||||
bcrypt = require('bcrypt'),
|
||||
bcrypt = require('bcrypt-nodejs'),
|
||||
Posts = require('./post').Posts,
|
||||
GhostBookshelf = require('./base');
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
// Clone the _user so we don't expose the hashed password unnecessarily
|
||||
userData = _.extend({}, _user);
|
||||
|
||||
return nodefn.call(bcrypt.hash, _user.password, 10).then(function (hash) {
|
||||
return nodefn.call(bcrypt.hash, _user.password, null, null).then(function (hash) {
|
||||
userData.password = hash;
|
||||
return GhostBookshelf.Model.add.call(User, userData);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user