Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

邮箱验证的大小写敏感问题 #581

Open
1 task
tnqzh123 opened this issue Aug 18, 2023 · 0 comments
Open
1 task

邮箱验证的大小写敏感问题 #581

tnqzh123 opened this issue Aug 18, 2023 · 0 comments

Comments

@tnqzh123
Copy link
Member

Blessing Skin 版本

commit 2a24506 @ dev branch

PHP 版本

8.1

出现问题时所使用的浏览器

Microsoft Edge

您正在使用的 Web Server

Nginx

您正在使用宝塔吗?

出现了什么问题?

用户在进行邮箱验证时,如果输入的邮箱地址与用户在皮肤站中预留的邮箱地址的大小写不一致,Blessing Skin Server 会返回「邮箱不一致」,就像这样:

虽然 RFC 5321 和 RFC 5322 中有规定邮箱地址的 local-part 部分可以是大小写敏感的,但是大部分邮箱服务商都是大小写不敏感的,在使用邮箱登录皮肤站的时候也是大小写不敏感的,这样容易让用户产生困扰:

建议在用户验证邮箱时将用户预留的邮箱和用户输入的邮箱都转小写再验证。

错误日志

No response

重现步骤

同上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant