summaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-03-14 20:52:01 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-15 08:52:01 +0800
commit021904e4e65804baa67b38e193e15aa37a391c60 (patch)
tree5c4f74764048eadd39a51c1b27e9c4937a0d236b /modules/auth/user_form.go
parentec0ae5d50c59315a3c597b1cf24d4c5508c718e5 (diff)
downloadgitea-021904e4e65804baa67b38e193e15aa37a391c60.tar.gz
gitea-021904e4e65804baa67b38e193e15aa37a391c60.zip
Fix typos in models/ and modules/ (#1248)
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 32c18872f3..32987e6d37 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -53,7 +53,7 @@ type InstallForm struct {
AdminEmail string `binding:"OmitEmpty;MinSize(3);MaxSize(254);Include(@)" locale:"install.admin_email"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -107,7 +107,7 @@ type UpdateProfileForm struct {
Location string `binding:"MaxSize(50)"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *UpdateProfileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -126,7 +126,7 @@ type AvatarForm struct {
Federavatar bool
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *AvatarForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -136,7 +136,7 @@ type AddEmailForm struct {
Email string `binding:"Required;Email;MaxSize(254)"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *AddEmailForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -148,7 +148,7 @@ type ChangePasswordForm struct {
Retype string `form:"retype"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *ChangePasswordForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -159,7 +159,7 @@ type AddSSHKeyForm struct {
Content string `binding:"Required"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *AddSSHKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -179,7 +179,7 @@ type TwoFactorAuthForm struct {
Passcode string `binding:"Required"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *TwoFactorAuthForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}