针对不可编辑的 "user_notifications.confirm_old_email" 文本提供更好的错误信息

以下两个字符串在最新版本(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"}"
2 个赞

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

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

8 个赞

Opened a PR :slight_smile:

https://github.com/discourse/discourse/pull/7304

6 个赞