diff --git a/common/utilities.go b/common/utilities.go index 95bb040..06a8a79 100644 --- a/common/utilities.go +++ b/common/utilities.go @@ -72,6 +72,7 @@ func AuthenticateForTest(t *testing.T, router *gin.Engine, url string, method st success := body_data["success"].(bool) if !success { + fmt.Println("Authentication not successful: ", body_data["message"]) panic(-1) } diff --git a/routes/user/userEndpoints.go b/routes/user/userEndpoints.go index 04e3b30..d062940 100644 --- a/routes/user/userEndpoints.go +++ b/routes/user/userEndpoints.go @@ -19,7 +19,7 @@ const weekHours = time.Hour * 24 * 7 type loginRequest struct { Username string `form:"Username" validate:"required"` - Password string `form:"Password" validate:"required,min=8"` + Password string `form:"Password" validate:"required,min=6"` } type tokenClaims struct {