Handle invalid error in the request form
Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
@@ -37,7 +37,7 @@ func NotBlacklisted() ValidatorFunc {
|
||||
|
||||
if err == nil {
|
||||
return newValidationError(
|
||||
ErrorCodeInvalidEnum,
|
||||
ErrorCodeInvalidEmail,
|
||||
"must not be blacklisted",
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user