This commit is contained in:
0xJacky 2021-10-18 23:13:47 +08:00
parent 953f943e01
commit 27c4b82d54
22 changed files with 97 additions and 85 deletions

View file

@ -15,11 +15,8 @@ type LoginUser struct {
func Login(c *gin.Context) {
var user LoginUser
ok, verrs := BindAndValid(c, &user)
ok := BindAndValid(c, &user)
if !ok {
c.JSON(http.StatusNotAcceptable, gin.H{
"errors": verrs,
})
return
}