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

This commit is contained in:
John Forte 2019-08-16 17:15:25 -04:00
parent 083a9a8234
commit 6176862f98

View File

@ -95,7 +95,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 {