diff --git a/api/src/auth/passport.js b/api/src/auth/passport.js index a28be49903..f8325b4351 100644 --- a/api/src/auth/passport.js +++ b/api/src/auth/passport.js @@ -5,7 +5,7 @@ import { Strategy as BearerStrategy } from 'passport-http-bearer'; import { OAuth2Strategy as GoogleStrategy } from 'passport-google-oauth'; import Promise from 'bluebird'; import CustomStrategy from 'passport-custom'; -import bcrypt from 'bcrypt'; +import bcrypt from 'bcryptjs'; import jwt from 'jsonwebtoken'; import { find, get, omit, omitBy } from 'lodash'; import { fromJS } from 'immutable'; diff --git a/lib/models/user.js b/lib/models/user.js index 75e828ae89..61b549cba3 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -1,4 +1,4 @@ -import bcrypt from 'bcrypt'; +import bcrypt from 'bcryptjs'; import _ from 'lodash'; import moment from 'moment'; import mongoose from 'mongoose'; diff --git a/package.json b/package.json index c2d37d42e1..51d5b7b59d 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "axios": "^0.18.0", "azure-sb": "^0.11.0", "babel-runtime": "6.22.0", - "bcrypt": "^3.0.7", + "bcryptjs": "^2.4.3", "bluebird": "^3.4.6", "body-parser": "^1.14.1", "boolean": "^0.1.0",