aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Mahn <richmahn@users.noreply.github.com>2016-07-26 12:43:06 -0600
committer无闻 <u@gogs.io>2016-07-27 02:43:06 +0800
commit0402c803c6904a4040cde50a5a918d5ff57e6d25 (patch)
tree429ed456c069543c636d2e4420f787ca6f57d0f6
parent29ccf047d82d06fd267fe036a8b7cce75164e4f2 (diff)
downloadgitea-0402c803c6904a4040cde50a5a918d5ff57e6d25.tar.gz
gitea-0402c803c6904a4040cde50a5a918d5ff57e6d25.zip
Added Full Name to CreateUser api call (#3333)
-rw-r--r--routers/api/v1/admin/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go
index b282ce3227..da08862c47 100644
--- a/routers/api/v1/admin/user.go
+++ b/routers/api/v1/admin/user.go
@@ -39,6 +39,7 @@ func parseLoginSource(ctx *context.APIContext, u *models.User, sourceID int64, l
func CreateUser(ctx *context.APIContext, form api.CreateUserOption) {
u := &models.User{
Name: form.Username,
+ FullName: form.FullName,
Email: form.Email,
Passwd: form.Password,
IsActive: true,