Skip to content

Commit

Permalink
fix(server:auth): specify digest for pbkdf2
Browse files Browse the repository at this point in the history
fixes #2628
  • Loading branch information
Awk34 committed Sep 1, 2017
1 parent c7776cb commit 689c3fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ UserSchema.methods = {
.toString('base64');
}

return crypto.pbkdf2(password, salt, defaultIterations, defaultKeyLength,
'sha1', (err, key) => {
return crypto.pbkdf2(password, salt, defaultIterations, defaultKeyLength, 'sha1', (err, key) => {
if(err) {
return callback(err);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default function(sequelize, DataTypes) {
.toString('base64');
}

return crypto.pbkdf2(password, salt, defaultIterations, defaultKeyLength,
return crypto.pbkdf2(password, salt, defaultIterations, defaultKeyLength, 'sha1',
function(err, key) {
if(err) {
callback(err);
Expand Down

0 comments on commit 689c3fc

Please sign in to comment.