From 2da188fe10543a6e61bcd63e76fc1fb919659341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 14 Jun 2022 13:29:34 -0400 Subject: [PATCH] fix: #10696, fix alert for password reset email --- public/language/en-GB/admin/manage/users.json | 1 + public/src/admin/manage/users.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/language/en-GB/admin/manage/users.json b/public/language/en-GB/admin/manage/users.json index 2fe43e0e2a..9064153de7 100644 --- a/public/language/en-GB/admin/manage/users.json +++ b/public/language/en-GB/admin/manage/users.json @@ -91,6 +91,7 @@ "alerts.validate-email-success": "Emails validated", "alerts.validate-force-password-reset-success": "User(s) passwords have been reset and their existing sessions have been revoked.", "alerts.password-reset-confirm": "Do you want to send password reset email(s) to these user(s)?", + "alerts.password-reset-email-sent": "Password reset email sent.", "alerts.confirm-delete": "Warning!

Do you really want to delete user(s)?

This action is not reversible! Only the user account will be deleted, their posts and topics will remain.

", "alerts.delete-success": "User(s) Deleted!", "alerts.confirm-delete-content": "Warning!

Do you really want to delete these user(s) content?

This action is not reversible! The users' accounts will remain, but their posts and topics will be deleted.

", diff --git a/public/src/admin/manage/users.js b/public/src/admin/manage/users.js index 6d75a7d353..cf2acb75f5 100644 --- a/public/src/admin/manage/users.js +++ b/public/src/admin/manage/users.js @@ -269,7 +269,7 @@ define('admin/manage/users', [ bootbox.confirm('[[admin/manage/users:alerts.password-reset-confirm]]', function (confirm) { if (confirm) { - socket.emit('admin.user.sendPasswordResetEmail', uids, done('[[notifications:email-confirm-sent]]')); + socket.emit('admin.user.sendPasswordResetEmail', uids, done('[[admin/manage/users:alerts.password-reset-email-sent]]')); } }); });