mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 08:44:46 +02:00
Attempt to fix issue processwire/processwire-issues#432 for disabling autocomplete and password field
This commit is contained in:
@@ -145,7 +145,7 @@ class InputfieldPassword extends InputfieldText {
|
||||
$this->wire('modules')->get('JqueryCore')->use('xregexp');
|
||||
$page = $this->wire('page');
|
||||
if(($page && $page->template == 'admin') || $this->wire('user')->isLoggedin()) {
|
||||
$this->attr('autocomplete', 'off'); // ProcessProfile and ProcessUser
|
||||
$this->attr('autocomplete', 'new-password'); // ProcessProfile and ProcessUser
|
||||
}
|
||||
return parent::renderReady($parent, $renderValueMode);
|
||||
}
|
||||
@@ -213,7 +213,7 @@ class InputfieldPassword extends InputfieldText {
|
||||
"<p class='InputfieldPasswordRow'>" .
|
||||
"<label for='_old_$name'>$oldPassLabel</label>" .
|
||||
"<input placeholder='$oldPassLabel' class='InputfieldPasswordOld $inputClass' type='password' " .
|
||||
"size='$size' id='_old_$name' name='_old_$name' value='' /> " .
|
||||
"size='$size' id='_old_$name' name='_old_$name' value='' autocomplete='new-password' /> " .
|
||||
"</p>";
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ class InputfieldPassword extends InputfieldText {
|
||||
"<p class='InputfieldPasswordRow'>" .
|
||||
"<label for='_$name'>$confirmLabel</label>" .
|
||||
"<input placeholder='$confirmLabel' class='InputfieldPasswordConfirm $inputClass' type='password' " .
|
||||
"size='$size' id='_$name' name='_$name' value='$confirmValue' /> " .
|
||||
"size='$size' id='_$name' name='_$name' value='$confirmValue' autocomplete='new-password' /> " .
|
||||
"<span class='pass-confirm detail'>" .
|
||||
//"<span class='confirm-pending on'>$angleIcon$newPassLabel ($confirmLabel)</span>" .
|
||||
"<span class='confirm-yes'>$goodIcon" . $this->_('Matches') . "</span>" .
|
||||
|
Reference in New Issue
Block a user