Add "--fullname" arg to gitea admin user create (#34241)
Some checks are pending
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Eric Hawicz
2025-04-19 11:36:30 -04:00
committed by GitHub
parent c9aa9068b3
commit 166ec1b4c3
2 changed files with 31 additions and 11 deletions

View File

@ -81,6 +81,10 @@ var microcmdUserCreate = &cli.Command{
Name: "restricted",
Usage: "Make a restricted user account",
},
&cli.StringFlag{
Name: "fullname",
Usage: `The full, human-readable name of the user`,
},
},
}
@ -191,6 +195,7 @@ func runCreateUser(c *cli.Context) error {
Passwd: password,
MustChangePassword: mustChangePassword,
Visibility: visibility,
FullName: c.String("fullname"),
}
overwriteDefault := &user_model.CreateUserOverwriteOptions{