Skip to content

Commit 93895d4

Browse files
authored
fix for passwords (#21)
1 parent 4780380 commit 93895d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

website/setup/management/commands/safecreatesuperuser.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from django.contrib.auth import get_user_model
99
from django.core.management.base import BaseCommand
10+
from django.contrib.auth.hashers import make_password
1011

1112

1213
class Command(BaseCommand):
@@ -33,7 +34,7 @@ def handle(self, *args, **options):
3334

3435
defaults = {
3536
"email": options["email"],
36-
"password": options["password"],
37+
"password": make_password(options["password"]),
3738
"is_superuser": True,
3839
"is_staff": True,
3940
}

0 commit comments

Comments
 (0)