diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-13 22:49:37 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-13 22:49:37 +0200 |
commit | 5b44fb4e85d8f67269d4df07d775034e8aaea3a0 (patch) | |
tree | 4ae8ade2357777bd198aa9962e534de1b52ba72c /pyaggr3g470r/views.py | |
parent | Auto confirm admin account. (diff) | |
download | newspipe-5b44fb4e85d8f67269d4df07d775034e8aaea3a0.tar.gz newspipe-5b44fb4e85d8f67269d4df07d775034e8aaea3a0.tar.bz2 newspipe-5b44fb4e85d8f67269d4df07d775034e8aaea3a0.zip |
Accounts created by the administrator are automatically activated.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |