aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-09 09:48:37 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-09 09:48:37 +0200
commitb8ec726cbdee2a3691185040847c551832ed096a (patch)
treeb42e37158272d15458fe868db1caed5754beef8e
parentBug fix: unorderable types when listing the categories. (diff)
downloadnewspipe-b8ec726cbdee2a3691185040847c551832ed096a.tar.gz
newspipe-b8ec726cbdee2a3691185040847c551832ed096a.tar.bz2
newspipe-b8ec726cbdee2a3691185040847c551832ed096a.zip
Users created by the admin are active by default.
-rw-r--r--src/web/views/admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/views/admin.py b/src/web/views/admin.py
index 34bb0f6c..3db08cd9 100644
--- a/src/web/views/admin.py
+++ b/src/web/views/admin.py
@@ -73,6 +73,7 @@ def process_user_form(user_id=None):
email=form.email.data,
pwdhash=generate_password_hash(form.password.data),
is_admin=False,
+ is_active=True,
refresh_rate=form.refresh_rate.data)
flash(gettext('User %(nick)s successfully created',
nick=user.nickname), 'success')
bgstack15