Skip to content

Commit

Permalink
dont use notActiveUser
Browse files Browse the repository at this point in the history
  • Loading branch information
reiji-h committed Oct 17, 2024
1 parent eb86b32 commit 84714a8
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 53 deletions.
13 changes: 0 additions & 13 deletions apps/app/resource/locales/en_US/notifications/notActiveUser.ejs

This file was deleted.

13 changes: 0 additions & 13 deletions apps/app/resource/locales/fr_FR/notifications/notActiveUser.ejs

This file was deleted.

13 changes: 0 additions & 13 deletions apps/app/resource/locales/ja_JP/notifications/notActiveUser.ejs

This file was deleted.

13 changes: 0 additions & 13 deletions apps/app/resource/locales/zh_CN/notifications/notActiveUser.ejs

This file was deleted.

3 changes: 2 additions & 1 deletion apps/app/src/server/routes/apiv3/forgot-password.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 84714a8

Please sign in to comment.