-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix compatibility problem with aliyun and netease mail as authentication source #27044
base: main
Are you sure you want to change the base?
Conversation
I have modified the original issue title and make changes to this pull request, can you re-review this? gitea/services/auth/source/smtp/source_authenticate.go Lines 47 to 55 in 684ab40
it only handles specific textproto error, so it may have compatibility with different email providers. and the actual textproto error is hidden from the log. with this pr, when auth fails it shows error in log like this(aliyun mail)
|
Will take a look tomorrow. |
It's not easy if we have no accounts of that two platforms. |
Actually you don't have to have accounts of these email providers, Just setup an SMTP authentication source with |
Maybe this one: ps: What I want to say is that, this is not a normal error code for smtp authentication error, so we need docs to explain why we need to do this. |
As I have commented in the PR:
Is that clear enough to you ? What this PR does is that instead of showing 500 to end user when such errors occurs, just show login failure to user and let admin to check the log to pinpoint the actual reason while not hiding it. It's not perfect though, but still be better. |
@lunny |
Close #27043