Remove reset-password logic

This commit is contained in:
Mrugesh Mohapatra
2016-12-16 10:35:38 +05:30
committed by Berkeley Martinez
parent 239313cb0b
commit b32e2102ac
4 changed files with 4 additions and 103 deletions

View File

@ -355,6 +355,7 @@ module.exports = function(User) {
});
});
<<<<<<< HEAD
User.on('resetPasswordRequest', function(info) {
if (!isEmail(info.email)) {
console.error(createEmailError());
@ -398,6 +399,8 @@ module.exports = function(User) {
});
});
=======
>>>>>>> Remove reset-password logic
User.beforeRemote('login', function(ctx, notUsed, next) {
const { body } = ctx.req;
if (body && typeof body.email === 'string') {