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