]> source.dussan.org Git - gitea.git/commit
Fix empty field `login_name` in API response JSON when creating user (#30511) (#30516)
authorGiteabot <teabot@gitea.io>
Tue, 16 Apr 2024 17:34:48 +0000 (01:34 +0800)
committerGitHub <noreply@github.com>
Tue, 16 Apr 2024 17:34:48 +0000 (19:34 +0200)
commitf9a025f6a358aa6e34408743a59f5081f397d47c
treed7d6b98dde76d2a6cb3f88b565d62fbaa7b00e57
parent00179f637d9add4e42edf6185cd641eb98115970
Fix empty field `login_name` in API response JSON when creating user (#30511) (#30516)

Backport #30511 by @yp05327

Fix #30508

ps: if `sourceID` is not set, `LoginName` will be ignored

Co-authored-by: yp05327 <576951401@qq.com>
routers/api/v1/admin/user.go