From 00a8788f201eb84291bb583bfc325bb82d9f3588 Mon Sep 17 00:00:00 2001 From: yujular <22210720287@m.fudan.edu.cn> Date: Thu, 19 Oct 2023 16:04:28 +0800 Subject: [PATCH] fix: validate password --- apis/schemas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/schemas.go b/apis/schemas.go index f31386f..2859af6 100644 --- a/apis/schemas.go +++ b/apis/schemas.go @@ -18,7 +18,7 @@ type EmailModel struct { type LoginRequest struct { EmailModel - Password string `json:"password" minLength:"8"` + Password string `json:"password" minLength:"8" validate:"required,min=8"` } type TokenResponse struct {