mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
Fix password validation to work with testing DB entries
This commit is contained in:
parent
7edb27de2e
commit
c33bcd0202
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue