Browse Source

Encrypt password on db seed, closes #38

pull/42/head
Dashie der otter 11 months ago
parent
commit
533d894b1b
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      dbseed.py

+ 2
- 1
dbseed.py View File

@@ -1,4 +1,5 @@
from models import user_datastore, Config, Role, Band
from flask_security.utils import encrypt_password


def make_db_seed(db):
@@ -29,7 +30,7 @@ def seed_users(db):

user_datastore.create_user(
email="dashie@sigpipe.me",
password="fluttershy",
password=encrypt_password("fluttershy"),
name="toto",
timezone="UTC",
roles=[role_adm],

Loading…
Cancel
Save