aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorsuccessgo <success.go@gaodacheng.com>2020-06-05 22:34:23 +0800
committerGitHub <noreply@github.com>2020-06-05 10:34:23 -0400
commitfa1c958f1cc8a294e41fea2be3d34064673e1f0a (patch)
tree379bd538ff10ae9235355f8dee896ed4ceef35a1 /modules/auth/user_form.go
parent5acba4609a8eb060d91faf42c771da1a62c0170b (diff)
downloadgitea-fa1c958f1cc8a294e41fea2be3d34064673e1f0a.tar.gz
gitea-fa1c958f1cc8a294e41fea2be3d34064673e1f0a.zip
Fix typo (#11773)
* Fix typo of MSSQL * Fix typo: validates
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 228e17dce5..0c191fbc07 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -85,7 +85,7 @@ type RegisterForm struct {
GRecaptchaResponse string `form:"g-recaptcha-response"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *RegisterForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -122,7 +122,7 @@ type MustChangePasswordForm struct {
Retype string
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *MustChangePasswordForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -135,7 +135,7 @@ type SignInForm struct {
Remember bool
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -152,7 +152,7 @@ type AuthorizationForm struct {
CodeChallenge string
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *AuthorizationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -164,7 +164,7 @@ type GrantApplicationForm struct {
State string
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *GrantApplicationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -182,7 +182,7 @@ type AccessTokenForm struct {
CodeVerifier string `json:"code_verifier"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *AccessTokenForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -304,7 +304,7 @@ type NewAccessTokenForm struct {
Name string `binding:"Required;MaxSize(255)"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *NewAccessTokenForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -315,7 +315,7 @@ type EditOAuth2ApplicationForm struct {
RedirectURI string `binding:"Required" form:"redirect_uri"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *EditOAuth2ApplicationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -335,7 +335,7 @@ type TwoFactorScratchAuthForm struct {
Token string `binding:"Required"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *TwoFactorScratchAuthForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -345,7 +345,7 @@ type U2FRegistrationForm struct {
Name string `binding:"Required"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *U2FRegistrationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -355,7 +355,7 @@ type U2FDeleteForm struct {
ID int64 `binding:"Required"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *U2FDeleteForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}