Skip to content

Conversation

lunny
Copy link
Member

@lunny lunny commented Feb 18, 2022

backport #18789

  • Use email_address table to check user's email when login with email adress

  • Update services/auth/signin.go

  • Fix test

  • Fix test

  • Fix logging in with ldap username != loginname

  • Fix if user does not exist yet

  • Make more clear this is loginName

  • Fix formatting

Co-authored-by: Lunny Xiao xiaolunwen@gmail.com
Co-authored-by: zeripath art27@cantab.net

* Use email_address table to check user's email when login with email adress

* Update services/auth/signin.go

* Fix test

* Fix test

* Fix logging in with ldap username != loginname

* Fix if user does not exist yet

* Make more clear this is loginName

* Fix formatting

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
@lunny lunny added the type/bug label Feb 18, 2022
@lunny lunny added this to the 1.16.2 milestone Feb 18, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Feb 19, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 22, 2022
@6543 6543 merged commit f5a3c0d into go-gitea:release/v1.16 Feb 22, 2022
@lunny lunny deleted the fix_ldap_loginame branch February 22, 2022 16:37
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants