-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Field login_name is empty after create an user #30508
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
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
topic/api
Concerns mainly the API
type/bug
Milestone
Comments
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Apr 16, 2024
…o-gitea#30511) Fix go-gitea#30508 ps: if `sourceID` is not set, `LoginName` will be ignored
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Apr 16, 2024
…o-gitea#30511) Fix go-gitea#30508 ps: if `sourceID` is not set, `LoginName` will be ignored
project-mirrors-bot-tu bot
pushed a commit
to project-mirrors/forgejo-as-gitea-fork
that referenced
this issue
Jan 23, 2025
…o-gitea#30511) (go-gitea#30516) Backport go-gitea#30511 by @yp05327 Fix go-gitea#30508 ps: if `sourceID` is not set, `LoginName` will be ignored Co-authored-by: yp05327 <[email protected]> (cherry picked from commit f9a025f)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
topic/api
Concerns mainly the API
type/bug
Description
When I create an user, I found the
login_name
is empty. My request like this:curl -X 'POST' \ 'https://x.x.x.x:8080/api/v1/admin/users' \ -H 'accept: application/json' \ -H 'authorization: Basic xxxxxxxxx' \ -H 'Content-Type: application/json' \ -d '{ "created_at": "2024-04-16T01:56:42.453Z", "email": "[email protected]", "full_name": "test3", "login_name": "test3", "must_change_password": false, "password": "aaaa@2024", "restricted": true, "send_notify": true, "source_id": 0, "username": "test3", "visibility": "public" }'
But the result like this:

Gitea Version
1.21.7
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker
Database
None
The text was updated successfully, but these errors were encountered: