Browse Source

Merge branch '159-bcyrpt-nodejs' into 'staging'

Fixes #159

See merge request !108
tags/v0.1.3^2
Big Bad Waffle 7 years ago
parent
commit
c4b785361b
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      src/server/components/auth.js
  2. +1
    -1
      src/server/package.json

+ 3
- 3
src/server/components/auth.js View File

@@ -1,5 +1,5 @@
define([ define([
'bcrypt',
'bcrypt-nodejs',
'security/io', 'security/io',
'misc/messages', 'misc/messages',
'security/connections', 'security/connections',
@@ -243,7 +243,7 @@ define([
} }
}, },
onUnhashedLogin: function(msg) { onUnhashedLogin: function(msg) {
bcrypt.hash(msg.data.password, 10, this.onPasswordHashed.bind(this, msg));
bcrypt.hash(msg.data.password, null, null, this.onPasswordHashed.bind(this, msg));
}, },
onPasswordHashed: function(msg, err, hashedPassword) { onPasswordHashed: function(msg, err, hashedPassword) {
io.set({ io.set({
@@ -294,7 +294,7 @@ define([


var credentials = msg.data; var credentials = msg.data;


bcrypt.hash(credentials.password, 10, this.onHashGenerated.bind(this, msg));
bcrypt.hash(credentials.password, null, null, this.onHashGenerated.bind(this, msg));
}, },
onHashGenerated: function(msg, err, hashedPassword) { onHashGenerated: function(msg, err, hashedPassword) {
io.set({ io.set({


+ 1
- 1
src/server/package.json View File

@@ -3,7 +3,7 @@
"version": "0.0.2", "version": "0.0.2",
"description": "isleward", "description": "isleward",
"dependencies": { "dependencies": {
"bcrypt": "^1.0.2",
"bcrypt-nodejs": "0.0.3",
"express": "^4.13.1", "express": "^4.13.1",
"extend": "^3.0.0", "extend": "^3.0.0",
"less-middleware": "^2.0.1", "less-middleware": "^2.0.1",


Loading…
Cancel
Save