Update Go and dependencies (#69)

This commit is contained in:
eikendev 2023-09-24 22:28:03 +02:00 committed by GitHub
parent 61d5e04ecf
commit 78a99281a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 77 additions and 63 deletions

View file

@ -34,9 +34,9 @@ func (a *Authenticator) userFromBasicAuth(ctx *gin.Context) (*model.User, error)
return nil, err
} else if user != nil && credentials.ComparePassword(user.PasswordHash, []byte(password)) {
return user, nil
} else {
return nil, errors.New("credentials were invalid")
}
return nil, errors.New("credentials were invalid")
}
return nil, errors.New("no credentials were supplied")