Skip to content

Commit fa1c958

Browse files
authored
Fix typo (#11773)
* Fix typo of MSSQL * Fix typo: validates
1 parent 5acba46 commit fa1c958

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

modules/auth/user_form.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ type RegisterForm struct {
8585
GRecaptchaResponse string `form:"g-recaptcha-response"`
8686
}
8787

88-
// Validate valideates the fields
88+
// Validate validates the fields
8989
func (f *RegisterForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
9090
return validate(errs, ctx.Data, f, ctx.Locale)
9191
}
@@ -122,7 +122,7 @@ type MustChangePasswordForm struct {
122122
Retype string
123123
}
124124

125-
// Validate valideates the fields
125+
// Validate validates the fields
126126
func (f *MustChangePasswordForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
127127
return validate(errs, ctx.Data, f, ctx.Locale)
128128
}
@@ -135,7 +135,7 @@ type SignInForm struct {
135135
Remember bool
136136
}
137137

138-
// Validate valideates the fields
138+
// Validate validates the fields
139139
func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
140140
return validate(errs, ctx.Data, f, ctx.Locale)
141141
}
@@ -152,7 +152,7 @@ type AuthorizationForm struct {
152152
CodeChallenge string
153153
}
154154

155-
// Validate valideates the fields
155+
// Validate validates the fields
156156
func (f *AuthorizationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
157157
return validate(errs, ctx.Data, f, ctx.Locale)
158158
}
@@ -164,7 +164,7 @@ type GrantApplicationForm struct {
164164
State string
165165
}
166166

167-
// Validate valideates the fields
167+
// Validate validates the fields
168168
func (f *GrantApplicationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
169169
return validate(errs, ctx.Data, f, ctx.Locale)
170170
}
@@ -182,7 +182,7 @@ type AccessTokenForm struct {
182182
CodeVerifier string `json:"code_verifier"`
183183
}
184184

185-
// Validate valideates the fields
185+
// Validate validates the fields
186186
func (f *AccessTokenForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
187187
return validate(errs, ctx.Data, f, ctx.Locale)
188188
}
@@ -304,7 +304,7 @@ type NewAccessTokenForm struct {
304304
Name string `binding:"Required;MaxSize(255)"`
305305
}
306306

307-
// Validate valideates the fields
307+
// Validate validates the fields
308308
func (f *NewAccessTokenForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
309309
return validate(errs, ctx.Data, f, ctx.Locale)
310310
}
@@ -315,7 +315,7 @@ type EditOAuth2ApplicationForm struct {
315315
RedirectURI string `binding:"Required" form:"redirect_uri"`
316316
}
317317

318-
// Validate valideates the fields
318+
// Validate validates the fields
319319
func (f *EditOAuth2ApplicationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
320320
return validate(errs, ctx.Data, f, ctx.Locale)
321321
}
@@ -335,7 +335,7 @@ type TwoFactorScratchAuthForm struct {
335335
Token string `binding:"Required"`
336336
}
337337

338-
// Validate valideates the fields
338+
// Validate validates the fields
339339
func (f *TwoFactorScratchAuthForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
340340
return validate(errs, ctx.Data, f, ctx.Locale)
341341
}
@@ -345,7 +345,7 @@ type U2FRegistrationForm struct {
345345
Name string `binding:"Required"`
346346
}
347347

348-
// Validate valideates the fields
348+
// Validate validates the fields
349349
func (f *U2FRegistrationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
350350
return validate(errs, ctx.Data, f, ctx.Locale)
351351
}
@@ -355,7 +355,7 @@ type U2FDeleteForm struct {
355355
ID int64 `binding:"Required"`
356356
}
357357

358-
// Validate valideates the fields
358+
// Validate validates the fields
359359
func (f *U2FDeleteForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
360360
return validate(errs, ctx.Data, f, ctx.Locale)
361361
}

modules/auth/user_form_auth_openid.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type SignInOpenIDForm struct {
1515
Remember bool
1616
}
1717

18-
// Validate valideates the fields
18+
// Validate validates the fields
1919
func (f *SignInOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
2020
return validate(errs, ctx.Data, f, ctx.Locale)
2121
}
@@ -27,7 +27,7 @@ type SignUpOpenIDForm struct {
2727
GRecaptchaResponse string `form:"g-recaptcha-response"`
2828
}
2929

30-
// Validate valideates the fields
30+
// Validate validates the fields
3131
func (f *SignUpOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
3232
return validate(errs, ctx.Data, f, ctx.Locale)
3333
}
@@ -38,7 +38,7 @@ type ConnectOpenIDForm struct {
3838
Password string `binding:"Required;MaxSize(255)"`
3939
}
4040

41-
// Validate valideates the fields
41+
// Validate validates the fields
4242
func (f *ConnectOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
4343
return validate(errs, ctx.Data, f, ctx.Locale)
4444
}

0 commit comments

Comments
 (0)