aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-13 22:49:37 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-13 22:49:37 +0200
commit5b44fb4e85d8f67269d4df07d775034e8aaea3a0 (patch)
tree4ae8ade2357777bd198aa9962e534de1b52ba72c
parentAuto confirm admin account. (diff)
downloadnewspipe-5b44fb4e85d8f67269d4df07d775034e8aaea3a0.tar.gz
newspipe-5b44fb4e85d8f67269d4df07d775034e8aaea3a0.tar.bz2
newspipe-5b44fb4e85d8f67269d4df07d775034e8aaea3a0.zip
Accounts created by the administrator are automatically activated.
-rw-r--r--pyaggr3g470r/views.py1
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:
bgstack15