diff options
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/views/session_mgmt.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/views/session_mgmt.py b/src/web/views/session_mgmt.py index 4982c549..4026e558 100644 --- a/src/web/views/session_mgmt.py +++ b/src/web/views/session_mgmt.py @@ -95,12 +95,11 @@ def signup(): form = SignupForm() if form.validate_on_submit(): user = UserController().create(nickname=form.nickname.data, - email=form.email.data, pwdhash=generate_password_hash(form.password.data)) # Send the confirmation email try: - notifications.new_account_notification(user) + notifications.new_account_notification(user, form.email.data) except Exception as error: flash(gettext('Problem while sending activation email: %(error)s', error=error), 'danger') |