From b8ec726cbdee2a3691185040847c551832ed096a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 9 Apr 2016 09:48:37 +0200 Subject: Users created by the admin are active by default. --- src/web/views/admin.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/web/views') 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') -- cgit