diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-01 06:12:14 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-01 06:12:14 -0400 |
commit | 669552e255fb98021b779918394c65792fe6f1d2 (patch) | |
tree | 83749a52ede967df34285a5e9f79310abed473c0 /modules/auth/apiv1 | |
parent | 17d2675dd263ba70a4d5370070d879776469144a (diff) | |
download | gitea-669552e255fb98021b779918394c65792fe6f1d2.tar.gz gitea-669552e255fb98021b779918394c65792fe6f1d2.zip |
Fix #340
Diffstat (limited to 'modules/auth/apiv1')
-rw-r--r-- | modules/auth/apiv1/miscellaneous.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/apiv1/miscellaneous.go b/modules/auth/apiv1/miscellaneous.go index 30515eb861..ea3892977a 100644 --- a/modules/auth/apiv1/miscellaneous.go +++ b/modules/auth/apiv1/miscellaneous.go @@ -63,9 +63,9 @@ func validateApiReq(errs *binding.Errors, data map[string]interface{}, f interfa case binding.BindingAlphaDashDotError: data["ErrorMsg"] = fieldName + " must be valid alpha or numeric or dash(-_) or dot characters" case binding.BindingMinSizeError: - data["ErrorMsg"] = fieldName + " must contain at least " + auth.GetMinMaxSize(field) + " characters" + data["ErrorMsg"] = fieldName + " must contain at least " + auth.GetMinSize(field) + " characters" case binding.BindingMaxSizeError: - data["ErrorMsg"] = fieldName + " must contain at most " + auth.GetMinMaxSize(field) + " characters" + data["ErrorMsg"] = fieldName + " must contain at most " + auth.GetMaxSize(field) + " characters" case binding.BindingEmailError: data["ErrorMsg"] = fieldName + " is not a valid e-mail address" case binding.BindingUrlError: |