aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-13 22:14:40 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-13 22:14:40 +0200
commitf47c5091c4534e9e7301518b86b8f56b658aaf94 (patch)
tree37c318f3df5865b813ecf8f40afb75dcac87565b
parentUpdated translations. (diff)
downloadnewspipe-f47c5091c4534e9e7301518b86b8f56b658aaf94.tar.gz
newspipe-f47c5091c4534e9e7301518b86b8f56b658aaf94.tar.bz2
newspipe-f47c5091c4534e9e7301518b86b8f56b658aaf94.zip
Auto confirm admin account.
-rw-r--r--db_create.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/db_create.py b/db_create.py
index 5f2c1abc..f92108b6 100644
--- a/db_create.py
+++ b/db_create.py
@@ -69,7 +69,8 @@ role_user = Role(name="user")
user1 = User(nickname="admin",
email="root@pyAggr3g470r.localhost",
- pwdhash=generate_password_hash("password"))
+ pwdhash=generate_password_hash("password"),
+ activation_key="")
user1.roles.extend([role_admin, role_user])
db.session.add(user1)
bgstack15