fix: unique user id in user session;

feat: login controller method;
fix: name validation hander
This commit is contained in:
2025-07-06 14:00:59 +03:00
parent 333817c9e1
commit bc9f5c6d3c
3 changed files with 22 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ func GetCustomHandlers() []CustomValidatorHandler {
FieldName: "name",
Function: func(fl validator.FieldLevel) bool {
username := fl.Field().String()
return regexp.MustCompile(`^[.]{1,75}$`).MatchString(username)
return regexp.MustCompile(`^.{1,75}$`).MatchString(username)
}},
{