Skip to content

Commit

Permalink
Clearly define exports on secure-password.js
Browse files Browse the repository at this point in the history
  • Loading branch information
venables committed Feb 13, 2017
1 parent da3c19f commit 306be18
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/secure-password.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = function (Bookshelf) {
'use strict'
'use strict'

function enableSecurePasswordPlugin (Bookshelf) {
const bcrypt = require('bcrypt')
const DEFAULT_PASSWORD_FIELD = 'password'
const DEFAULT_PASSWORD_DIGEST_FIELD = 'password_digest'
Expand Down Expand Up @@ -106,3 +107,5 @@ module.exports = function (Bookshelf) {

Bookshelf.Model = Model
}

module.exports = enableSecurePasswordPlugin

0 comments on commit 306be18

Please sign in to comment.