From ed18a52adda8b36d4782745b0a51d53e944f65e4 Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 2 Feb 2023 13:24:41 -0600 Subject: Print mts-ubpasswd errors if all else is clean --- www/commission/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/commission/index.php b/www/commission/index.php index fda4e97..ae5e2ee 100644 --- a/www/commission/index.php +++ b/www/commission/index.php @@ -220,7 +220,11 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ $finished = "Errors: " . $result; $save_password = ""; $password = ""; - $password_err = $result2; + if (strlen($result2) === 0) { + $password_err = $result3; + } else { + $password_err = $result2; + } $username_err = $result; } } // Create user, set password -- cgit v1.2.3