Skip to content

Commit

Permalink
fix: validate password
Browse files Browse the repository at this point in the history
  • Loading branch information
yujular committed Oct 19, 2023
1 parent 5719ac0 commit 00a8788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 00a8788

Please sign in to comment.