From 7999c1fbe571fe8ac5aa7ae5943c7185567d9e6c Mon Sep 17 00:00:00 2001 From: UlricQin Date: Mon, 2 Nov 2020 12:38:22 +0800 Subject: [PATCH] render user json do not return uuid --- src/models/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/user.go b/src/models/user.go index 33d51ac3..c13ca19b 100644 --- a/src/models/user.go +++ b/src/models/user.go @@ -20,7 +20,7 @@ import ( type User struct { Id int64 `json:"id"` - UUID string `json:"uuid" xorm:"'uuid'"` + UUID string `json:"-" xorm:"'uuid'"` Username string `json:"username"` Password string `json:"-"` Dispname string `json:"dispname"`