Was failing the check if clicking test notifications twice in a row. So it was saving the asterisks and overwriting the current password.

(cherry picked from commit 6176862f98)
This commit is contained in:
John Forte 2019-08-16 17:15:25 -04:00 committed by jim-p
parent 535b07f72c
commit 9f36302efa

View File

@ -139,7 +139,7 @@ if ($_POST) {
$config['notifications']['smtp']['notifyemailaddress'] = $_POST['smtpnotifyemailaddress'];
$config['notifications']['smtp']['username'] = $_POST['smtpusername'];
if ($_POST['smtppassword'] != DMYPWD) {
if (strcmp($_POST['smtppassword'], DMYPWD)!= 0) {
if ($_POST['smtppassword'] == $_POST['smtppassword_confirm']) {
$config['notifications']['smtp']['password'] = $_POST['smtppassword'];
} else {