From fc9011e1a1c87da8d1e18d64259f029b793d88e5 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sun, 1 Oct 2017 22:08:12 -0700 Subject: [PATCH] Require password when creating user (#74) --- gitea/admin_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/admin_user.go b/gitea/admin_user.go index 74f166a..2308eea 100644 --- a/gitea/admin_user.go +++ b/gitea/admin_user.go @@ -24,7 +24,7 @@ type CreateUserOption struct { // in: body Email string `json:"email" binding:"Required;Email;MaxSize(254)"` // in: body - Password string `json:"password" binding:"MaxSize(255)"` + Password string `json:"password" binding:"Required;MaxSize(255)"` // in: body SendNotify bool `json:"send_notify"` }