Browse Source

Fix Password Managers messing stuff up

causefx 8 years ago
parent
commit
c443c384ae
2 changed files with 5 additions and 1 deletions
  1. 1 1
      functions.php
  2. 4 0
      settings.php

+ 1 - 1
functions.php

@@ -1974,7 +1974,7 @@ function buildField($params, $sizeSm = 12, $sizeMd = 12, $sizeLg = 12) {
 
 	// Tags
 	$tags = array();
-	foreach(array('placeholder','style','disabled','readonly','pattern','min','max','required','onkeypress','onchange','onfocus','onleave','href','onclick') as $value) {
+	foreach(array('placeholder','style','disabled','readonly','pattern','min','max','required','onkeypress','onchange','onfocus','onleave','href','onclick','autocomplete') as $value) {
 		if (isset($params[$value])) {
 			if (is_string($params[$value])) { $tags[] = $value.'="'.$params[$value].'"';
 			} else if ($params[$value] === true) { $tags[] = $value; }

+ 4 - 0
settings.php

@@ -1384,6 +1384,7 @@ echo buildSettings(
 						'labelTranslate' => 'PASSWORD',
 						'name' => 'nzbgetPassword',
 						'value' => (empty(NZBGETPASSWORD)?'':randString(20)),
+                        'autocomplete' => 'newpassword',
 					),
                     array(
 						'type' => $userSelectType,
@@ -1794,6 +1795,7 @@ echo buildSettings(
 						'name' => 'plexPassword',
 						'class' => 'be-auth be-auth-plex',
 						'value' => (empty(PLEXPASSWORD)?'':randString(20)),
+						'autocomplete' => 'newpassword',
 					),
                     array(
 						'type' => 'text',
@@ -1846,6 +1848,7 @@ echo buildSettings(
 						'labelTranslate' => 'COOKIE_PASSWORD',
 						'name' => 'cookiePassword',
 						'value' => (empty(COOKIEPASSWORD)?'':randString(20)),
+                        'autocomplete' => 'newpassword',
 					),
                     array(
 						'type' => 'text',
@@ -1911,6 +1914,7 @@ echo buildSettings(
 						'labelTranslate' => 'SMTP_HOST_PASSWORD',
 						'name' => 'smtpHostPassword',
 						'value' => (empty(SMTPHOSTPASSWORD)?'':randString(20)),
+                        'autocomplete' => 'newpassword',
 					),
 					array(
 						'type' => 'text',