diff --git a/apps/app/resource/locales/en_US/notifications/notActiveUser.ejs b/apps/app/resource/locales/en_US/notifications/notActiveUser.ejs deleted file mode 100644 index b5840322e54..00000000000 --- a/apps/app/resource/locales/en_US/notifications/notActiveUser.ejs +++ /dev/null @@ -1,13 +0,0 @@ -Password Reset - -Hi, <%- email %> - -A request has been received to change the password from <%- appTitle %>. -However, this email is not registerd. Please try again with different email. - -If you did not request a password reset, you can safely ignore this email. - -------------------------------------------------------------------------- - -GROWI: <%- appTitle %> -URL: <%- url %> diff --git a/apps/app/resource/locales/fr_FR/notifications/notActiveUser.ejs b/apps/app/resource/locales/fr_FR/notifications/notActiveUser.ejs deleted file mode 100644 index 00d6089bade..00000000000 --- a/apps/app/resource/locales/fr_FR/notifications/notActiveUser.ejs +++ /dev/null @@ -1,13 +0,0 @@ -Réinitialisation du mot de passe - -Bonjour, <%- email %> - -Une demande de réinitialisation de mot de passe a été demandée depuis <%- appTitle %>. -Cette adresse courriel n'est pas enregistré. Réessayez avec une adresse courriel différente. - -Si vous n'avez pas demandé de réinitialisation de mot de passe, ignorez ce courriel. - -------------------------------------------------------------------------- - -GROWI: <%- appTitle %> -URL: <%- url %> diff --git a/apps/app/resource/locales/ja_JP/notifications/notActiveUser.ejs b/apps/app/resource/locales/ja_JP/notifications/notActiveUser.ejs deleted file mode 100644 index 10d9772e58d..00000000000 --- a/apps/app/resource/locales/ja_JP/notifications/notActiveUser.ejs +++ /dev/null @@ -1,13 +0,0 @@ -パスワードリセット - -こんにちは、 <%- email %> - -<%- appTitle %> からパスワード再設定のリクエストがありましたが、このemailは登録されておりません。 -他のemailアドレスで再度お試しください。 - -もしこのリクエストに心当たりがない場合は、このメールを無視してください。 - -------------------------------------------------------------------------- - -GROWI: <%- appTitle %> -URL: <%- url %> diff --git a/apps/app/resource/locales/zh_CN/notifications/notActiveUser.ejs b/apps/app/resource/locales/zh_CN/notifications/notActiveUser.ejs deleted file mode 100644 index 9968b3641c4..00000000000 --- a/apps/app/resource/locales/zh_CN/notifications/notActiveUser.ejs +++ /dev/null @@ -1,13 +0,0 @@ -重设密码 - -嗨,<%-电子邮件%> - -已收到来自 <%-appTitle%> 的更改密码请求。 -但是,此电子邮件未注册。请使用其他电子邮件重试。 - -如果您没有要求重置密码,则可以放心地忽略此电子邮件。 - -------------------------------------------------------------------------- - -GROWI: <%- appTitle %> -URL: <%- url %> diff --git a/apps/app/src/server/routes/apiv3/forgot-password.js b/apps/app/src/server/routes/apiv3/forgot-password.js index 8bcea069a86..dcec994ab31 100644 --- a/apps/app/src/server/routes/apiv3/forgot-password.js +++ b/apps/app/src/server/routes/apiv3/forgot-password.js @@ -79,7 +79,8 @@ module.exports = (crowi) => { // when the user is not found or active if (user == null || user.status !== 2) { - await sendPasswordResetEmail('notActiveUser', locale, email, appUrl); + // Do not send emails to non GROWI user + // For security reason, do not use error messages like "Email does not exist" return res.apiv3(); }