diff options
author | Cara Salter <cara@devcara.com> | 2022-08-24 13:15:31 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-08-24 13:15:31 -0400 |
commit | 9de84e3fbae0f2893e9c4f1425afa06899959bf7 (patch) | |
tree | f96d33d881954edc9b03df0bc821fb35eb59c577 /app/auth | |
parent | 4b616447715b8129ae322341959e1c2bfabbd10e (diff) | |
download | nccd-9de84e3fbae0f2893e9c4f1425afa06899959bf7.tar.gz nccd-9de84e3fbae0f2893e9c4f1425afa06899959bf7.zip |
flaskify
Diffstat (limited to 'app/auth')
-rw-r--r-- | app/auth/__init__.py | 3 | ||||
-rw-r--r-- | app/auth/forms.py | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/auth/__init__.py b/app/auth/__init__.py new file mode 100644 index 0000000..52f0cd7 --- /dev/null +++ b/app/auth/__init__.py @@ -0,0 +1,3 @@ +from flask import Blueprint + +bp = Blueprint('auth', __name__, url_prefix='/auth') diff --git a/app/auth/forms.py b/app/auth/forms.py new file mode 100644 index 0000000..4814f48 --- /dev/null +++ b/app/auth/forms.py @@ -0,0 +1,7 @@ +from flask_security.forms import RegisterForm +from wtforms import StringField +from wtforms.validators import DataRequired + +class ExtendedRegister(RegisterForm): + pref_name = StringField('Preferred Name', [DataRequired()]) + |