From e453950a67eec2cf8408b87da7b63829c5b70ba6 Mon Sep 17 00:00:00 2001 From: Silversthorn Date: Mon, 4 Mar 2024 01:18:18 +0100 Subject: [PATCH] fixing an issue at startup for check of password len --- app/classes/shared/main_models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/classes/shared/main_models.py b/app/classes/shared/main_models.py index 0cced56f..77633a4c 100644 --- a/app/classes/shared/main_models.py +++ b/app/classes/shared/main_models.py @@ -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."