fix: unique user id in user session;
feat: login controller method; fix: name validation hander
This commit is contained in:
@@ -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)
|
||||
}},
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user