ChatGPT-Next-Web icon indicating copy to clipboard operation
ChatGPT-Next-Web copied to clipboard

[Feature] 建议改进密码错误提示

Open wpwupingwp opened this issue 6 months ago • 1 comments

为了提高交流效率,我们设立了官方 QQ 群和 QQ 频道,如果你在使用或者搭建过程中遇到了任何问题,请先第一时间加群或者频道咨询解决,除非是可以稳定复现的 Bug 或者较为有创意的功能建议,否则请不要随意往 Issue 区发送低质无意义帖子。

点击加入官方群聊

这个功能与现有的问题有关吗? 无关 访问密码输入错误时没有有效提示 你想要什么功能或者有什么建议? 当输入访问密码时,错误输入中文标点符号,会提示Failed TypeError: Failed to execute 'fetch' on 'Window': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point. 即请求头不支持中文字符,但这种错误提示信息一般人无法理解。 建议前端提交fetch请求时,检查访问密码的编码,然后再将其添加到headers,或直接向用户提示密码字符非法。

有没有可以参考的同类竞品? 可以给出参考产品的链接或者截图。

其他信息 举例:访问密码是my_password!,用户输入成my_password!,即会出现这种情况。而这种情形理论上发生概率不低,尤其是向其他不懂计算机的用户分享时

wpwupingwp avatar Dec 17 '23 03:12 wpwupingwp

Bot detected the issue body's language is not English, translate it automatically.


Title: [Feature] It is recommended to improve the password error prompt

In order to improve communication efficiency, we have set up an official QQ group and QQ channel. If you encounter any problems during use or construction, please join the group or channel for consultation as soon as possible, unless it is a bug that can be stably reproduced or More creative feature suggestions, otherwise please do not send low-quality and meaningless posts to the Issue area.

Click to join the official group chat

**Is this feature related to an existing issue? ** irrelevant There is no valid prompt when the access password is entered incorrectly. **What features do you want or have any suggestions? ** When entering the access password, incorrectly entering Chinese punctuation marks will prompt Failed TypeError: Failed to execute 'fetch' on 'Window': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point. That is, the request header does not support Chinese characters, but this error message is incomprehensible to ordinary people. It is recommended that when the front end submits a fetch request, it should check the encoding of the access password before adding it to the headers, or directly prompt the user that the password characters are illegal.

**Are there any similar competing products that we can refer to? ** Links or screenshots of reference products can be given.

other information Can you tell me about your other considerations.

Issues-translate-bot avatar Dec 17 '23 03:12 Issues-translate-bot