From 93e9548eaffe4ea662a3dffcccc7935ca73a36ec Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 18 Feb 2022 15:14:48 -0500 Subject: [PATCH] Require a minimum of 8 characters for passwords, to match Kratos min requirements --- salt/common/tools/sbin/so-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-user b/salt/common/tools/sbin/so-user index 1f86cda02..93e184fd9 100755 --- a/salt/common/tools/sbin/so-user +++ b/salt/common/tools/sbin/so-user @@ -98,7 +98,7 @@ function validatePassword() { password=$1 len=$(expr length "$password") - if [[ $len -lt 6 ]]; then + if [[ $len -lt 8 ]]; then fail "Password does not meet the minimum requirements" fi if [[ $len -gt 72 ]]; then