Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Remove additional empty name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mlacorte committed Oct 8, 2021
1 parent 5717820 commit 834a4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/subscribers.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func handleUpdateSubscriber(c echo.Context) error {
req.Email = em
}

if req.Name != "" && !strHasLen(req.Name, 1, stdInputMaxLen) {
if !strHasLen(req.Name, 0, stdInputMaxLen) {
return echo.NewHTTPError(http.StatusBadRequest, app.i18n.T("subscribers.invalidName"))
}

Expand Down

0 comments on commit 834a4fa

Please sign in to comment.