diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-19 16:42:38 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-19 16:45:13 +0100 |
| commit | d2bd7472dec27d7ebcb88a05517b9394b63df014 (patch) | |
| tree | 96ccc4cc8436965f8413572d38944d1052a538fa /app/auth/routes.py | |
| parent | Code quality (diff) | |
| download | AnnotateChange-d2bd7472dec27d7ebcb88a05517b9394b63df014.tar.gz AnnotateChange-d2bd7472dec27d7ebcb88a05517b9394b63df014.zip | |
Add various user flags for registration
Diffstat (limited to 'app/auth/routes.py')
| -rw-r--r-- | app/auth/routes.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/auth/routes.py b/app/auth/routes.py index 0e40fbb..fa792c2 100644 --- a/app/auth/routes.py +++ b/app/auth/routes.py @@ -134,7 +134,14 @@ def register(): return redirect(url_for("main.index")) form = RegistrationForm() if form.validate_on_submit(): - user = User(username=form.username.data, email=form.email.data) + user = User( + username=form.username.data, + email=form.email.data, + fullname=form.fullname.data, + read_toc=form.toc.data, + wants_credit=form.credit.data, + wants_updates=form.updated.data, + ) user.set_password(form.password.data) db.session.add(user) db.session.commit() |
