added user signup feature
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user