# 针对不可编辑的 "user\_notifications.confirm\_old\_email" 文本提供更好的错误信息

**URL:** https://meta.discourse.org/t/better-error-message-for-uneditable-user-notifications-confirm-old-email-texts/111853
**Category:** UX
**Created:** [2019年三月17日 15:25 UTC](https://meta.discourse.org/t/better-error-message-for-uneditable-user-notifications-confirm-old-email-texts/111853 "2019-03-17T15:25:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ankhamax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankhamax/32/52785_2.png) [@Ankhamax](https://meta.discourse.org/u/Ankhamax)
#### Post date: [2019年三月17日 15:25 UTC](https://meta.discourse.org/t/better-error-message-for-uneditable-user-notifications-confirm-old-email-texts/111853/1 "2019-03-17T15:25:48Z")

</div>

以下两个字符串在最新版本（Discourse 2.3.0.beta5）中缺失。

```
1. requestedUrl: "/admin/customize/site_texts/user_notifications.confirm_old_email.subject_template"
2. responseJSON: {errors: Array(1), error_type: "not_found"}
3. responseText: "{"errors":["请求的URL或资源未找到。"],"error_type":"not_found"}"

1. requestedUrl: "/admin/customize/site_texts/user_notifications.confirm_old_email.subject_template"
2. responseJSON: {errors: Array(1), error_type: "not_found"}
3. responseText: "{"errors":["请求的URL或资源未找到。"],"error_type":"not_found"}"

```

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2019年三月17日 21:08 UTC](https://meta.discourse.org/t/better-error-message-for-uneditable-user-notifications-confirm-old-email-texts/111853/3 "2019-03-17T21:08:45Z")

</div>

The ability to edit those strings was removed last May as a reaction to a social engineering attack.

> [@Discourse hacked via sophisticated social engineering](https://meta.discourse.org/t/discourse-hacked-via-sophisticated-social-engineering/87905/2):
>
> we [just implemented a change](https://github.com/discourse/discourse/commit/9f422c93f67f156c3216a57cdf1afc0c5fc94e28) such that _nobody_, not even an admin, can modify that particular email template.

I guess there should be a friendly error message instead of a generic error 404 to make it less confusing.

---

<div class="post-metadata">

### Author: ![venarius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/venarius/32/133142_2.png) [@venarius](https://meta.discourse.org/u/venarius)
#### Post date: [2019年四月2日 12:21 UTC](https://meta.discourse.org/t/better-error-message-for-uneditable-user-notifications-confirm-old-email-texts/111853/4 "2019-04-02T12:21:28Z")

</div>

Opened a PR 🙂

[https://github.com/discourse/discourse/pull/7304](https://github.com/discourse/discourse/pull/7304)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2025年五月15日 00:37 UTC](https://meta.discourse.org/t/better-error-message-for-uneditable-user-notifications-confirm-old-email-texts/111853/5 "2025-05-15T00:37:44Z")

</div>


