-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Use email_address table to check user's email when login with email address #18769
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
Conversation
e7eda2a
to
aa4315d
Compare
5f123d0
to
47ff835
Compare
I think this is a useful addition (I can now login with different email addresses than the main email address is using local authentication. However, it does not fix #18547 If I set login_source to ldap I'm still not able to login using email, nor using username if the username is not equal to the login_name (Authentication Sign-In Name). this error is logged (i had to switch to more verbose logging): 2022/02/16 23:31:25 ...ers/web/auth/auth.go:200:SignInPost() [I] Failed authentication attempt for johan@xxxx from [::1]:34610: user does not exist [uid: 0, name: johan@xxx, keyid: 0] the same error is shown when I login using my username. I think that the mapping to login_name is just not happening anymore. |
It's not clear what's the problem of the bug, but I think we should get the data from email_address table but not from user table now. It's amazing the test is wrong from 4 years ago.
Fix #18547