summaryrefslogtreecommitdiffstats
path: root/modules/auth/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r--modules/auth/auth.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go
index 4561dd831d..7329cbdcdf 100644
--- a/modules/auth/auth.go
+++ b/modules/auth/auth.go
@@ -130,7 +130,9 @@ func validate(errors *binding.Errors, data base.TmplData, form Form) {
case binding.MaxSizeError:
data["ErrorMsg"] = form.Name(field.Name) + " must contain at most " + getMinMaxSize(field) + " characters"
case binding.EmailError:
- data["ErrorMsg"] = form.Name(field.Name) + " is not valid"
+ data["ErrorMsg"] = form.Name(field.Name) + " is not a valid e-mail address"
+ case binding.UrlError:
+ data["ErrorMsg"] = form.Name(field.Name) + " is not a valid URL"
default:
data["ErrorMsg"] = "Unknown error: " + err
}