summaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models')
-rw-r--r--lib/models/user.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/models/user.js b/lib/models/user.js
index 26a557a7..383be1a7 100644
--- a/lib/models/user.js
+++ b/lib/models/user.js
@@ -1,15 +1,6 @@
'use strict'
// external modules
const Sequelize = require('sequelize')
-const crypto = require('crypto')
-if (!crypto.scrypt) {
- // polyfill for node.js 8.0, see https://github.com/chrisveness/scrypt-kdf#openssl-implementation
- const scryptAsync = require('scrypt-async')
- crypto.scrypt = function (password, salt, keylen, options, callback) {
- const opt = Object.assign({}, options, { dkLen: keylen })
- scryptAsync(password, salt, opt, (derivedKey) => callback(null, Buffer.from(derivedKey)))
- }
-}
const scrypt = require('scrypt-kdf')
// core