aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form_auth_openid.go
diff options
context:
space:
mode:
authorFluf <36822577+flufmonster@users.noreply.github.com>2018-07-05 00:13:05 -0400
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-07-05 00:13:05 -0400
commitf035dcd4f221a631cc499d90661237d6cf601843 (patch)
tree18f7cfd148dd36c85e4c82c8cd5fdef88c249606 /modules/auth/user_form_auth_openid.go
parent54fedd4070be9819a6dd4e441b3c5689334eae9d (diff)
downloadgitea-f035dcd4f221a631cc499d90661237d6cf601843.tar.gz
gitea-f035dcd4f221a631cc499d90661237d6cf601843.zip
Add Recaptcha functionality to Gitea (#4044)
Diffstat (limited to 'modules/auth/user_form_auth_openid.go')
-rw-r--r--modules/auth/user_form_auth_openid.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/auth/user_form_auth_openid.go b/modules/auth/user_form_auth_openid.go
index 0ef821dd9e..6a3c284873 100644
--- a/modules/auth/user_form_auth_openid.go
+++ b/modules/auth/user_form_auth_openid.go
@@ -22,8 +22,9 @@ func (f *SignInOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) b
// SignUpOpenIDForm form for signin up with OpenID
type SignUpOpenIDForm struct {
- UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
- Email string `binding:"Required;Email;MaxSize(254)"`
+ UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"`
+ Email string `binding:"Required;Email;MaxSize(254)"`
+ GRecaptchaResponse string `form:"g-recaptcha-response"`
}
// Validate valideates the fields