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

[Bug]: QQ邮件登陆后后台出现乱码,且发件退件 || [Bug]: After logging in to QQ mail, garbled characters appear in the background and the mail is returned. #2500

Closed
awaae001 opened this issue May 12, 2024 · 3 comments

Comments

@awaae001
Copy link

awaae001 commented May 12, 2024

问题描述 | Describe the bug

使用QQ登录的用户无法正常获取用户电子邮件
image

问题网站 | Website URL

https://waline.m-c.top/

服务部署在哪里? | Where your waline deploy?

Docker

数据存储在哪里?| Where your comment data store?

MySQL


Problem description | Describe the bug

Users who log in using QQ cannot obtain user emails normally
image

Question Website | Website URL

https://waline.m-c.top/

Where is the service deployed? | Where your waline deploy?

Docker

Where is the data stored? | Where your comment data store?

MySQL

@awaae001 awaae001 added the bug Something isn't working label May 12, 2024
@github-actions github-actions bot changed the title [Bug]: QQ邮件登陆后后台出现乱码,且发件退件 [Bug]: QQ邮件登陆后后台出现乱码,且发件退件 || [Bug]: After logging in to QQ mail, garbled characters appear in the background and the mail is returned. May 12, 2024
@lizheming
Copy link
Collaborator

lizheming commented May 12, 2024

用户使用 QQ 登录,由于没有办法获取到 QQ 用户的邮箱信息,所以会在后台根据 UID 伪造一个邮箱名称,用于保持账号系统的全局唯一。
https://github.com/walinejs/waline/blob/main/packages/server/src/controller/oauth.js#L78-L80

这种用户,后台代码有做判断,是不会给它发邮件通知的。
https://github.com/walinejs/waline/blob/main/packages/server/src/service/notify.js#L523-L530


Users log in using QQ. Since there is no way to obtain the QQ user's email information, an email name will be forged based on the UID in the background to maintain the global uniqueness of the account system.
https://github.com/walinejs/waline/blob/main/packages/server/src/controller/oauth.js#L78-L80

For this kind of user, the background code will make a judgment and will not send them an email notification.
https://github.com/walinejs/waline/blob/main/packages/server/src/service/notify.js#L523-L530

@lizheming lizheming removed the bug Something isn't working label May 12, 2024
@awaae001
Copy link
Author

用户使用 QQ 登录,由于没有办法获取到 QQ 用户的邮箱信息,所以会在后台根据 UID 伪造一个邮箱名称,用于保持账号系统的全局唯一。 https://github.com/walinejs/waline/blob/main/packages/server/src/controller/oauth.js#L78-L80

这种用户,后台代码有做判断,是不会给它发邮件通知的。 https://github.com/walinejs/waline/blob/main/packages/server/src/service/notify.js#L523-L530

Users log in using QQ. Since there is no way to obtain the QQ user's email information, an email name will be forged based on the UID in the background to maintain the global uniqueness of the account system. https://github.com/walinejs/waline/blob/main/packages/server/src/controller/oauth.js#L78-L80

For this kind of user, the background code will make a judgment and will not send them an email notification. https://github.com/walinejs/waline/blob/main/packages/server/src/service/notify.js#L523-L530

那该如何让它可以获取到电子邮件?

@lizheming
Copy link
Collaborator

lizheming commented May 12, 2024

QQ 登录用户无法获取到电子邮件地址,这是 QQ 那边的限制,没有办法。


QQ logged-in users cannot obtain email addresses. This is a restriction on QQ and there is no way.

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

2 participants