Browse Source

Encrypt password on db seed, closes #38

pull/42/head
Dashie der otter 9 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 @@
1 1
 from models import user_datastore, Config, Role, Band
2
+from flask_security.utils import encrypt_password
2 3
 
3 4
 
4 5
 def make_db_seed(db):
@@ -29,7 +30,7 @@ def seed_users(db):
29 30
 
30 31
     user_datastore.create_user(
31 32
         email="dashie@sigpipe.me",
32
-        password="fluttershy",
33
+        password=encrypt_password("fluttershy"),
33 34
         name="toto",
34 35
         timezone="UTC",
35 36
         roles=[role_adm],

Loading…
Cancel
Save