mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fixed missign translation for when email is already registered
This commit is contained in:
parent
b3a2d44937
commit
f5910762c1
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue