From 1b34969b09941e18c39489c36ee8b91c78d027fd Mon Sep 17 00:00:00 2001 From: Mark Jacobson <52427991+marksparkza@users.noreply.github.com> Date: Thu, 1 Jul 2021 11:35:24 +0200 Subject: [PATCH] Capture the user's name at signup time Ref #18, #15 --- odp/identity/forms.py | 4 ++++ odp/identity/templates/signup.html | 1 + odp/identity/views/signup.py | 3 ++- odp/lib/users.py | 4 +++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/odp/identity/forms.py b/odp/identity/forms.py index f6b9341b..ca4b3ea2 100644 --- a/odp/identity/forms.py +++ b/odp/identity/forms.py @@ -4,6 +4,10 @@ class SignupForm(FlaskForm): + name = StringField( + label='Full name', + validators=[input_required()], + ) email = StringField( label='Email address', filters=[lambda s: s.lower() if s else s], diff --git a/odp/identity/templates/signup.html b/odp/identity/templates/signup.html index 9b52db44..abac1934 100644 --- a/odp/identity/templates/signup.html +++ b/odp/identity/templates/signup.html @@ -8,6 +8,7 @@ {% block content %}