bye bye bcrypt-nodejs

Closes #47
This commit is contained in:
syuilo
2017-01-18 14:19:50 +09:00
parent 4059e3b504
commit 1cd99290db
3 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import * as express from 'express';
import * as bcrypt from 'bcrypt';
import * as bcrypt from 'bcryptjs';
import rndstr from 'rndstr';
import recaptcha = require('recaptcha-promise');
import User from '../models/user';
@@ -54,7 +54,7 @@ export default async (req: express.Request, res: express.Response) => {
}
// Generate hash of password
const salt = bcrypt.genSaltSync(14);
const salt = bcrypt.genSaltSync(8);
const hash = bcrypt.hashSync(password, salt);
// Generate secret