[FIX] website: remove autocomplete from inputs in page properties

Before this commit, on Chrome browser, the page url input and the
visiblity password input were autocompleted with the user's login and
password in the page properties options.

After this commit, they are no longer.

Regarding the url input page, it seems to be because Chrome considers
that the first text input located before a password input in the DOM is
a login input.

task-2502747

closes odoo/odoo#84393

X-original-commit: 7f45822919f8ef5f070a40a4dd41d22757a9da76
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
Benjamin Vray
2022-02-11 11:40:32 +00:00
parent 3f280a0190
commit 705813e941
@@ -162,7 +162,8 @@
<input type="password" id="visibility_password"
t-att-value='widget.page.visibility_password'
t-att-required="widget.page.visibility == 'password' ? 'required' : None"
class="form-control show_visibility_password"/>
class="form-control show_visibility_password"
autocomplete="new-password"/>
<t t-if="widget.page.hasSingleGroup">
<div class="ml-1 input-group-prepend show_group_id">
<div class="input-group-text"><i class="fa fa-group"></i></div>