Add "--fullname" arg to gitea admin user create (#34241)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 166ec1b4c3971b7e14c4b6456d29b38f93a4e915)
This commit is contained in:
Eric Hawicz 2025-04-19 11:36:30 -04:00 committed by Michael Jerger
parent eb67c4c109
commit dec91bd9ed

View file

@ -76,6 +76,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`,
},
},
}
@ -161,6 +165,7 @@ func runCreateUser(c *cli.Context) error {
IsAdmin: isAdmin,
MustChangePassword: mustChangePassword,
Visibility: visibility,
FullName: c.String("fullname"),
}
overwriteDefault := &user_model.CreateUserOverwriteOptions{