set saltfactor for Passwords

pull/936/head
Berkeley Martinez 2015-06-12 11:38:00 -07:00
parent b9b5a649ee
commit 070a80cb79
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ module.exports = function(User) {
// see: // see:
// https://github.com/strongloop/loopback/issues/1137#issuecomment-109200135 // https://github.com/strongloop/loopback/issues/1137#issuecomment-109200135
delete User.validations.email; delete User.validations.email;
// set salt factor for passwords
User.settings.saltWorkFactor = 5;
debug('setting up user hooks'); debug('setting up user hooks');
// send verification email to new camper // send verification email to new camper
User.afterRemote('create', function(ctx, user, next) { User.afterRemote('create', function(ctx, user, next) {

View File

@ -242,5 +242,5 @@
"property": "doesExist" "property": "doesExist"
} }
], ],
"methods": ["login"] "methods": []
} }