added user signup feature

This commit is contained in:
2025-09-26 23:57:36 +02:00
parent 2f0a9b5127
commit 57355fe9ac
15 changed files with 242 additions and 14 deletions

View File

@@ -27,6 +27,8 @@ func computeValidationMessage(fe *validator.FieldError) string {
switch tag {
case "required":
return fmt.Sprintf("%s is required.", (*fe).Field())
case "min":
return fmt.Sprintf("%s is not long enough. It should be at least %s characters.", (*fe).Field(), (*fe).Param())
case "max":
return fmt.Sprintf("%s is too long. It should be under %s characters.", (*fe).Field(), (*fe).Param())
default: