feat(deps): update golangci-lint to v2
Build Docker Image / Build-Docker-Image (push) Successful in 5m5s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 4m53s

This commit was merged in pull request #55.
This commit is contained in:
2025-05-06 17:36:05 +02:00
parent 81380f184e
commit f085ed378e
10 changed files with 36 additions and 28 deletions
+2 -2
View File
@@ -149,9 +149,9 @@ func (service AccountImpl) Delete(user *types.User, id uuid.UUID) error {
func (service AccountImpl) validateAccount(name string) error {
if name == "" {
return errors.New("Please enter a value for the \"name\" field.")
return errors.New("please enter a value for the \"name\" field")
} else if !safeInputRegex.MatchString(name) {
return errors.New("Please use only letters, dashes or numbers for \"name\".")
return errors.New("please use only letters, dashes or numbers for \"name\"")
} else {
return nil
}
+1 -1
View File
@@ -19,7 +19,7 @@ import (
var (
ErrInvalidCredentials = errors.New("invalid email or password")
ErrInvalidPassword = errors.New("The password needs to be 8 characters long, contain at least one number, one special, one uppercase and one lowercase character")
ErrInvalidPassword = errors.New("the password needs to be 8 characters long, contain at least one number, one special, one uppercase and one lowercase character")
ErrInvalidEmail = errors.New("invalid email")
ErrAccountExists = errors.New("account already exists")
ErrSessionIdInvalid = errors.New("session ID is invalid")