From fab85686335d37839c6c3c20b10f820559eb2003 Mon Sep 17 00:00:00 2001 From: alick-liming Date: Wed, 13 Jan 2021 10:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=BB=84=E7=BB=87=E5=AD=97=E6=AE=B5=20(#505)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: alickliming --- src/modules/rdb/http/router_user.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/modules/rdb/http/router_user.go b/src/modules/rdb/http/router_user.go index 28eea7da..7693f043 100644 --- a/src/modules/rdb/http/router_user.go +++ b/src/modules/rdb/http/router_user.go @@ -74,17 +74,18 @@ func userAddPost(c *gin.Context) { now := time.Now().Unix() b, _ := json.Marshal([]string{pass}) u := models.User{ - Username: f.Username, - Password: pass, - Passwords: string(b), - Dispname: f.Dispname, - Phone: f.Phone, - Email: f.Email, - Im: f.Im, - IsRoot: f.IsRoot, - LeaderId: f.LeaderId, - UpdatedAt: now, - UUID: models.GenUUIDForUser(f.Username), + Username: f.Username, + Password: pass, + Passwords: string(b), + Dispname: f.Dispname, + Phone: f.Phone, + Email: f.Email, + Im: f.Im, + IsRoot: f.IsRoot, + LeaderId: f.LeaderId, + Organization: f.Organization, + UpdatedAt: now, + UUID: models.GenUUIDForUser(f.Username), } if f.LeaderId != 0 { -- GitLab