Add quick unlock config option

This commit is contained in:
thePR0M3TH3AN committed 2025-07-13 14:59:22 -04:00
1 parent 159f4a413f
commit f5dcaf9af4
9 files changed
+53 -3

No files matched your search

+3
View File
@@ -468,6 +468,9 @@ def config_set(ctx: typer.Context, key: str, value: str) -> None:
"min_lowercase": lambda v: cfg.set_min_lowercase(int(v)),
"min_digits": lambda v: cfg.set_min_digits(int(v)),
"min_special": lambda v: cfg.set_min_special(int(v)),
"quick_unlock": lambda v: cfg.set_quick_unlock(
v.lower() in ("1", "true", "yes", "y", "on")
),
}
action = mapping.get(key)