From 5b44fb4e85d8f67269d4df07d775034e8aaea3a0 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 13 May 2014 22:49:37 +0200 Subject: Accounts created by the administrator are automatically activated. --- pyaggr3g470r/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 32ae1e30..9b0dac85 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -713,6 +713,7 @@ def create_user(user_id=None): if form.password.data != "": user.set_password(form.password.data) user.roles = [role_user] + user.activation_key = "" db.session.commit() flash(gettext('User') + ' ' + user.nickname + ' ' + gettext('successfully updated.'), 'success') else: -- cgit