aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorAJ ONeal <coolaj86@gmail.com>2019-07-06 13:48:02 -0600
committertechknowlogick <techknowlogick@gitea.io>2019-07-06 15:48:02 -0400
commit62d6127f1b945b3160d337a190b33aa96e0f60b5 (patch)
treee7cee9a32d2c6922eec0839515dd4f76bb6d8232 /modules/auth/user_form.go
parent337d6915ff8967637ff515108612c3a7a4f51585 (diff)
downloadgitea-62d6127f1b945b3160d337a190b33aa96e0f60b5.tar.gz
gitea-62d6127f1b945b3160d337a190b33aa96e0f60b5.zip
Make captcha and password optional for external accounts (#6606)
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 0c8bd30abc..c117d038be 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -79,7 +79,7 @@ func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) bindin
type RegisterForm struct {
UserName string `binding:"Required;AlphaDashDot;MaxSize(40)"`
Email string `binding:"Required;Email;MaxSize(254)"`
- Password string `binding:"Required;MaxSize(255)"`
+ Password string `binding:"MaxSize(255)"`
Retype string
GRecaptchaResponse string `form:"g-recaptcha-response"`
}
@@ -129,6 +129,7 @@ func (f *MustChangePasswordForm) Validate(ctx *macaron.Context, errs binding.Err
// SignInForm form for signing in with user/password
type SignInForm struct {
UserName string `binding:"Required;MaxSize(254)"`
+ // TODO remove required from password for SecondFactorAuthentication
Password string `binding:"Required;MaxSize(255)"`
Remember bool
}