Commit 5cd1d457 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

FEAT(form): add autocomplete=new-password to password fields

Refs: #789
parent 2f7db569
Pipeline #7939 passed with stage
in 2 minutes and 4 seconds
......@@ -81,6 +81,7 @@ $this->assign('title', __d("Forms", "Create an account {0}", $myMessage));
[
"class"=>"form-control",
"label" => ["class"=>"control-label","text"=>__d("Forms"," {0} Password : ", '<span class = "asterisk">*</span>')],
"autocomplete" => "new-password",
"required"=>"required",
"escape"=>false,
]
......@@ -89,6 +90,7 @@ $this->assign('title', __d("Forms", "Create an account {0}", $myMessage));
<?= $this->Form->input('password',
["class"=>"form-control",
"label" => ["class"=>"control-label","text"=>__d("Forms"," {0} Confirm password : ", '<span class = "asterisk">*</span>')],
"autocomplete" => "new-password",
"required"=>"required",
"name" => "confirm_password",
"id" => "confirm_password" ,
......
......@@ -34,6 +34,7 @@ $this->assign('title', __d("Forms", 'Reset your password{0}', isset($message) ?
[
"class"=>"form-control",
"label" => ["class"=>"control-label","text"=>__d("Forms"," {0} Password : ", '<span class = "asterisk">*</span>')],
"autocomplete" => "new-password",
"required"=>"required",
"name" => "new_password",
"value"=>"",
......@@ -44,6 +45,7 @@ $this->assign('title', __d("Forms", 'Reset your password{0}', isset($message) ?
<?= $this->Form->input('confirm_password',
["class"=>"form-control",
"label" => ["class"=>"control-label","text"=>__d("Forms"," {0} Confirm password : ", '<span class = "asterisk">*</span>')],
"autocomplete" => "new-password",
"required"=>"required",
"name" => "confirm_password",
"type" => "password",
......
......@@ -21,6 +21,7 @@ $this->assign('title', __d("Forms", 'Reset your password {0}', isset($message) ?
[
"class"=>"form-control",
"label" => ["class"=>"control-label","text"=>__d("Forms"," {0} Password : ", '<span class = "asterisk">*</span>')],
"autocomplete" => "new-password",
"required"=>"required",
"name" => "new_password",
"value"=>"",
......@@ -30,6 +31,7 @@ $this->assign('title', __d("Forms", 'Reset your password {0}', isset($message) ?
<?= $this->Form->input('confirm_password',
["class"=>"form-control",
"label" => ["class"=>"control-label","text"=>__d("Forms"," {0} Confirm password : ", '<span class = "asterisk">*</span>')],
"autocomplete" => "new-password",
"required"=>"required",
"name" => "confirm_password",
"type" => "password",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment