fixed missign translation for when email is already registered

This commit is contained in:
Henry Oswald 2016-02-16 12:05:16 +00:00
parent b3a2d44937
commit f5910762c1

View file

@ -63,7 +63,7 @@ module.exports =
if err?
logger.err err:err, user_id:user_id, newEmail:newEmail, "problem updaing users email address"
if err.message == "alread_exists"
message = req.i18n.translate("alread_exists")
message = req.i18n.translate("email_already_registered")
else
message = req.i18n.translate("problem_changing_email_address")
return res.send 500, {message:message}