fix: make "login_name" field optional for API edit user (#38917) (#38945)

Backport #38917

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot
2026-08-16 07:03:57 -07:00
committed by GitHub
parent 5a665c0b0e
commit cbcf36cded
6 changed files with 9 additions and 43 deletions
+1 -5
View File
@@ -25063,7 +25063,6 @@
"login_name": {
"description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
"default": "empty",
"x-go-name": "LoginName"
},
"must_change_password": {
@@ -26249,8 +26248,7 @@
"description": "EditUserOption edit user options",
"type": "object",
"required": [
"source_id",
"login_name"
"source_id"
],
"properties": {
"active": {
@@ -26301,7 +26299,6 @@
"login_name": {
"description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
"default": "empty",
"x-go-name": "LoginName"
},
"max_repo_creation": {
@@ -30658,7 +30655,6 @@
"login_name": {
"description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
"default": "empty",
"x-go-name": "LoginName"
},
"prohibit_login": {
+1 -5
View File
@@ -4835,7 +4835,6 @@
"x-go-name": "FullName"
},
"login_name": {
"default": "empty",
"description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
"x-go-name": "LoginName"
@@ -6058,7 +6057,6 @@
"x-go-name": "Location"
},
"login_name": {
"default": "empty",
"description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
"x-go-name": "LoginName"
@@ -6109,8 +6107,7 @@
}
},
"required": [
"source_id",
"login_name"
"source_id"
],
"type": "object",
"x-go-package": "gitea.dev/modules/structs"
@@ -10469,7 +10466,6 @@
"x-go-name": "UserName"
},
"login_name": {
"default": "empty",
"description": "identifier of the user, provided by the external authenticator (if configured)",
"type": "string",
"x-go-name": "LoginName"