aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/auth/user_form.go22
-rw-r--r--modules/auth/user_form_auth_openid.go6
2 files changed, 14 insertions, 14 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)
}
diff --git a/modules/auth/user_form_auth_openid.go b/modules/auth/user_form_auth_openid.go
index b355825483..c1d19b9bb4 100644
--- a/modules/auth/user_form_auth_openid.go
+++ b/modules/auth/user_form_auth_openid.go
@@ -15,7 +15,7 @@ type SignInOpenIDForm struct {
Remember bool
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *SignInOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -27,7 +27,7 @@ type SignUpOpenIDForm struct {
GRecaptchaResponse string `form:"g-recaptcha-response"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *SignUpOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
@@ -38,7 +38,7 @@ type ConnectOpenIDForm struct {
Password string `binding:"Required;MaxSize(255)"`
}
-// Validate valideates the fields
+// Validate validates the fields
func (f *ConnectOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}