aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-04-04 23:38:24 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-04-04 23:38:24 +0200
commit694e8a2a264c15ff95db66b8cf86ca84aa23ba88 (patch)
treeb78e7d7cf47a16ad7d3221c5d546c47ffea84451 /src/web
parentadded migration script (diff)
downloadnewspipe-694e8a2a264c15ff95db66b8cf86ca84aa23ba88.tar.gz
newspipe-694e8a2a264c15ff95db66b8cf86ca84aa23ba88.tar.bz2
newspipe-694e8a2a264c15ff95db66b8cf86ca84aa23ba88.zip
account checking without storing the email of the user
Diffstat (limited to 'src/web')
-rw-r--r--src/web/views/session_mgmt.py3
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')
bgstack15