mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-23 04:39:28 +02:00
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:
parent
eb67c4c109
commit
dec91bd9ed
1 changed files with 5 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue