diff options
| author | Christoph (Sheogorath) Kern | 2018-11-16 11:45:20 +0100 |
|---|---|---|
| committer | GitHub | 2018-11-16 11:45:20 +0100 |
| commit | db69983a622693962a0fd42b2f091b3f3b6f6906 (patch) | |
| tree | 08e51914a7d6dd00c993c3b7f2481521a1ba6f0e /lib/models/user.js | |
| parent | f9aa001ee78e604415c2a6e82f65701a1f07d3c4 (diff) | |
| parent | 858a59529e4b99d5c13e6fce8354cd9e9b00a462 (diff) | |
Merge pull request #1057 from ccoenen/eslint
switching to eslint for code checking
Diffstat (limited to '')
| -rw-r--r-- | lib/models/user.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/user.js b/lib/models/user.js index 1bd8c745..2ebf6d06 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -50,7 +50,7 @@ module.exports = function (sequelize, DataTypes) { }, { instanceMethods: { verifyPassword: function (attempt) { - if (scrypt.verifyKdfSync(new Buffer(this.password, 'hex'), attempt)) { + if (scrypt.verifyKdfSync(Buffer.from(this.password, 'hex'), attempt)) { return this } else { return false |
