From 669552e255fb98021b779918394c65792fe6f1d2 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 1 Aug 2014 06:12:14 -0400 Subject: Fix #340 --- modules/auth/apiv1/miscellaneous.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/auth/apiv1') 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: -- cgit v1.2.3