From a2149fa6fb12eea1e41c114bac1022447362ef2d Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 18 Sep 2017 18:32:49 +0200 Subject: [PATCH] Don't require first and last name fields in OAuth signup I had fixed the OAuth process to deal with this case, but failed to cover the actual new account creation part which still required it. With this fix, we allow a signup without a name. If the user wishes to set a full name on the account it can be done on the profile page for the user, but it's possible to proceed to access restricted resources without doing it. Reported by @Smylers2 on twitter, relayed by @TokenScandi --- pgweb/account/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgweb/account/forms.py b/pgweb/account/forms.py index a8ab5848..e7322ab4 100644 --- a/pgweb/account/forms.py +++ b/pgweb/account/forms.py @@ -77,8 +77,8 @@ class SignupForm(forms.Form): class SignupOauthForm(forms.Form): username = forms.CharField(max_length=30) - first_name = forms.CharField(max_length=30) - last_name = forms.CharField(max_length=30) + first_name = forms.CharField(max_length=30, required=False) + last_name = forms.CharField(max_length=30, required=False) email = forms.EmailField() captcha = ReCaptchaField() -- 2.39.5