commit
ce290302d1
@ -68,6 +68,8 @@ module.exports = function(app) {
|
|||||||
|
|
||||||
app.post(apiPrefix + '/email/delete/profile', emailPlugin.eraseProfile);
|
app.post(apiPrefix + '/email/delete/profile', emailPlugin.eraseProfile);
|
||||||
app.get(apiPrefix + '/email/delete/item', emailPlugin.erase);
|
app.get(apiPrefix + '/email/delete/item', emailPlugin.erase);
|
||||||
|
|
||||||
|
app.get(apiPrefix + '/email/resend_email', emailPlugin.resendEmail);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Currency rates plugin
|
// Currency rates plugin
|
||||||
|
|||||||
@ -755,10 +755,16 @@
|
|||||||
|
|
||||||
var secret = emailPlugin._parseSecret(value);
|
var secret = emailPlugin._parseSecret(value);
|
||||||
|
|
||||||
emailPlugin.sendVerificationEmail(email, secret);
|
emailPlugin.sendVerificationEmail(email, secret, function (err) {
|
||||||
return response.json({
|
if (err) {
|
||||||
success: true
|
logger.error('error resending verification email', email, secret, err);
|
||||||
}).end();
|
return emailPlugin.returnError(emailPlugin.errors.ERROR_SENDING_EMAIL, response);
|
||||||
|
}
|
||||||
|
return response.json({
|
||||||
|
success: true
|
||||||
|
}).end();
|
||||||
|
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user