diff options
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r-- | modules/auth/user_form.go | 22 |
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) } |