Commit 9c8b5ebb authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch 'S13827_Datetimepicker_browser_Brave_offers_user_credentials' into 'develop'

S13827 Fix for autofill in datetimepicker and all other given text elements....

See merge request !412
parents 0f392b5c b96e3789
Pipeline #6969 passed with stage
in 1 minute and 44 seconds
......@@ -1488,11 +1488,21 @@ abstract class AbstractBuildForm {
$formElement[FE_TYPE] = 'hidden';
}
}
// If type password is selected then type text with own class will be taken to fake password over CSS
if($formElement[FE_TYPE] === 'password'){
$formElement[FE_TYPE] = 'text';
$class .= ' qfq-password';
}
$attribute .= HelperFormElement::getAttributeList($formElement, [FE_TYPE, 'size']);
$attribute .= Support::doAttribute('value', htmlentities($value), false);
// $attribute .= Support::doAttribute('value', htmlentities($value, ENT_QUOTES, 'UTF-8'), false);
}
// Set for password to give choice of generated password for user and not autofill password field. Deprecated, we dont use type password anymore.
// if($formElement[FE_TYPE] === 'password') {
// $attribute .= Support::doAttribute('autocomplete', 'new-password');
// }
$attribute .= HelperFormElement::getAttributeList($formElement, [FE_INPUT_AUTOCOMPLETE, 'autofocus', 'placeholder']);
$formElement[FE_CHECK_PATTERN] = Sanitize::getInputCheckPattern($formElement[FE_CHECK_TYPE], $formElement[FE_CHECK_PATTERN]
......@@ -1542,6 +1552,11 @@ abstract class AbstractBuildForm {
$input .= $formElement[FE_INPUT_EXTRA_BUTTON_INFO];
}
//Generate an empty input type text to ignore autocomplete in other elements. deprecated because not using type password anymore.
// if($formElement[FE_TYPE] === 'password'){
// $input = '<input type="text" style="display:none;">'.$input;
// }
return $input;
}
......
......@@ -1345,3 +1345,14 @@ thead.qfq-sticky td {
.qfq-badge-inverse:hover {
background-color: #1a1a1a;
}
@font-face {
font-family: 'password';
font-style: normal;
font-weight: 400;
src: url(https://jsbin-user-assets.s3.amazonaws.com/rafaelcastrocouto/password.ttf);
}
input.qfq-password {
font-family: 'password';
}
\ No newline at end of file
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