Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 689c3fc

Browse filesBrowse files
committed
fix(server:auth): specify digest for pbkdf2
fixes #2628
1 parent c7776cb commit 689c3fc
Copy full SHA for 689c3fc

File tree

2 files changed

+2
-3
lines changed
Filter options

2 files changed

+2
-3
lines changed

‎templates/app/server/api/user(auth)/user.model(mongooseModels).js

Copy file name to clipboardExpand all lines: templates/app/server/api/user(auth)/user.model(mongooseModels).js
+1-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ UserSchema.methods = {
252252
.toString('base64');
253253
}
254254

255-
return crypto.pbkdf2(password, salt, defaultIterations, defaultKeyLength,
256-
'sha1', (err, key) => {
255+
return crypto.pbkdf2(password, salt, defaultIterations, defaultKeyLength, 'sha1', (err, key) => {
257256
if(err) {
258257
return callback(err);
259258
} else {

‎templates/app/server/api/user(auth)/user.model(sequelizeModels).js

Copy file name to clipboardExpand all lines: templates/app/server/api/user(auth)/user.model(sequelizeModels).js
+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default function(sequelize, DataTypes) {
184184
.toString('base64');
185185
}
186186

187-
return crypto.pbkdf2(password, salt, defaultIterations, defaultKeyLength,
187+
return crypto.pbkdf2(password, salt, defaultIterations, defaultKeyLength, 'sha1',
188188
function(err, key) {
189189
if(err) {
190190
callback(err);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.