diff options
author | John Klug <john.klug@multitech.com> | 2023-02-02 13:24:41 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-02-02 13:24:41 -0600 |
commit | ed18a52adda8b36d4782745b0a51d53e944f65e4 (patch) | |
tree | a05edb7b983fd2a5d45f081f9be589fefd906c58 | |
parent | 381049bb35af31f12d2a09b1532f49fb8357d4d4 (diff) | |
download | commissioning-ed18a52adda8b36d4782745b0a51d53e944f65e4.tar.gz commissioning-ed18a52adda8b36d4782745b0a51d53e944f65e4.tar.bz2 commissioning-ed18a52adda8b36d4782745b0a51d53e944f65e4.zip |
Print mts-ubpasswd errors if all else is clean1.0.2
-rw-r--r-- | www/commission/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
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 |