Sfoglia il codice sorgente

Replaced bcrypt-then with updated bcrypt

Jamie Curnow 7 anni fa
parent
commit
d030182c0a
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      package.json
  2. 1 1
      src/backend/models/auth.js

+ 1 - 1
package.json

@@ -36,7 +36,7 @@
   "dependencies": {
     "ajv": "^6.5.1",
     "batchflow": "^0.4.0",
-    "bcrypt-then": "^1.1.0",
+    "bcrypt": "^3.0.0",
     "body-parser": "^1.18.3",
     "compression": "^1.7.2",
     "config": "^1.30.0",

+ 1 - 1
src/backend/models/auth.js

@@ -3,7 +3,7 @@
 
 'use strict';
 
-const bcrypt = require('bcrypt-then');
+const bcrypt = require('bcrypt');
 const db     = require('../db');
 const Model  = require('objection').Model;
 const User   = require('./user');