mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Add "--fullname" arg to gitea admin user create (#34241)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -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{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user