librelist archives

« back to archive

Dealing with (bad) password autocompletion

Dealing with (bad) password autocompletion

From:
paparazzia
Date:
2015-04-26 @ 06:40
Hi,

When editing a room, the password field is autocompleted with user login
credentials if they are known by the browser.

This seems to happen because of the type=password.
This is very confusing for users who are not manually blanking the password
field.

How to tackle this issue ? The form seems built by Strophe.

Any hint appreciated.

Re: [conversejs] Dealing with (bad) password autocompletion

From:
Jc Brand
Date:
2015-05-01 @ 08:37
On Sun, Apr 26, 2015 at 08:40:50AM +0200, paparazzia wrote:
>    When editing a room, the password field is autocompleted with user login
>    credentials if they are known by the browser.
> 
>    This seems to happen because of the type=password.
>    This is very confusing for users who are not manually blanking the
>    password field.
>    How to tackle this issue ? The form seems built by Strophe.

You can remove the "password" type with this patch in
src/templates/form_input.html:

    -<input name="{{name}}" type="{{type}}" 
    +<input name="{{name}}" {[ if (type !== "password") { ]} 
type="{{type}}" {[ } ]}
        {[ if (value) { ]} value="{{value}}" {[ } ]}
        {[ if (required) { ]} class="required" {[ } ]} >