From 2a3703b95ae9b3bf9655c4f1f25ca518f065322a Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Thu, 19 Oct 2017 12:08:23 +0530 Subject: [PATCH] fix(user): Add LoopBack email validation once again Earlier we did not need emails for everyone, this is not the case anymore. We now require emails, and all other auth mechanisms are now deprecated for new users. --- common/models/user.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/models/user.js b/common/models/user.js index 938e6ed4b5..8695e03a5b 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -83,11 +83,6 @@ function getWaitPeriod(ttl) { return 0; } module.exports = function(User) { - // NOTE(berks): user email validation currently not needed but build in. This - // work around should let us sneak by - // see: - // https://github.com/strongloop/loopback/issues/1137#issuecomment-109200135 - delete User.validations.email; // set salt factor for passwords User.settings.saltWorkFactor = 5; // set user.rand to random number