fixing an issue at startup for check of password len

This commit is contained in:
Silversthorn 2024-03-04 01:18:18 +01:00
parent 1bb87de8e3
commit e453950a67

View File

@ -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."