mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
fixing an issue at startup for check of password len
This commit is contained in:
parent
1bb87de8e3
commit
e453950a67
@ -24,7 +24,9 @@ class DatabaseBuilder:
|
||||
"by Crafty. Find it in app/config/default-creds.txt"
|
||||
)
|
||||
username = default_data.get("username", "admin")
|
||||
if self.helper.minimum_password_length > default_data.get("password", password):
|
||||
if self.helper.minimum_password_length > len(
|
||||
default_data.get("password", password)
|
||||
):
|
||||
Console.critical(
|
||||
"Default password too short"
|
||||
" using Crafty's created default."
|
||||
|
Loading…
Reference in New Issue
Block a user