Project

General

Profile

« Previous | Next » 

Revision 06f7d60e

Added by Doktor Notor over 8 years ago

Do not nag people about passwords mismatch when growl is disabled (Bug #7129)

These fields tend to get "helpfully" pre-filled with random crap by built-in browser password managers or extensions such as LastPass. No need to bother people with these when the feature is disabled.

View differences:

src/usr/local/www/system_advanced_notifications.php
96 96
			if ($_POST['password'] == $_POST['password_confirm']) {
97 97
				$config['notifications']['growl']['password'] = $_POST['password'];
98 98
			} else {
99
				$input_errors[] = gettext("Growl passwords must match");
99
				// Bug #7129 - do not nag people about passwords mismatch when growl is disabled
100
				if ($_POST['disable_growl'] != "yes") {
101
					$input_errors[] = gettext("Growl passwords must match");
102
				}
100 103
			}
101 104
		}
102 105

  

Also available in: Unified diff