gitea/models/user
wxiaoguang bffbbf5470
Improve oauth2 client "preferred username field" logic and the error handling (#30622)
Follow #30454
And fix #24957

When using "preferred_username", if no such field,
`extractUserNameFromOAuth2` (old `getUserName`) shouldn't return an
error. All other USERNAME options do not return such error.

And fine tune some logic and error messages, make code more stable and
more friendly to end users.
2024-04-25 11:22:32 +00:00
..
avatar.go Replace -1 with GhostUserID (#27703) 2023-10-20 14:43:08 +00:00
badge.go Add admin API route for managing user's badges (#23106) 2024-03-01 03:23:28 -05:00
block.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
email_address_test.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
email_address.go Refactor DeleteInactiveUsers, fix bug and add tests (#30206) 2024-04-01 02:06:35 +00:00
error.go Remove unused KeyID. (#29167) 2024-02-14 12:50:10 -05:00
external_login_user.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
follow_test.go
follow.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
list.go
main_test.go
must_change_password.go
openid_test.go
openid.go
redirect_test.go
redirect.go
search.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
setting_keys.go
setting_test.go
setting.go
user_system.go Replace -1 with GhostUserID (#27703) 2023-10-20 14:43:08 +00:00
user_test.go Improve oauth2 client "preferred username field" logic and the error handling (#30622) 2024-04-25 11:22:32 +00:00
user_update.go
user.go Improve oauth2 client "preferred username field" logic and the error handling (#30622) 2024-04-25 11:22:32 +00:00