Lastpass changing username

2019-06-20 06:15发布

问题:

I have a form that username gets pre-populated from the backend. When the page loads, the username is shown in the username field. When lastpass loads, it changes the username to the username that is saved on the lastpass. It looks like a bug that lastpass overwrites the username when it has a value. Is there a way to prevent this?

In the above video, pre defined username is baz@qux.com. After lastpass is loaded, it changes to foo@bar.com.

PS. I'm the developer. I am looking for a way to prevent this from happening for my users.

回答1:

Use

data-lpignore="true"

On your html element.

According to lastpass documentation:

To prevent LastPass icons on your website or application from appearing on non-desired fields, add 'data-lpignore'=true attribute to your form fields, this will prevent LastPass icons from being generated in this particular locations.

Source: https://lastpass.com/support.php?cmd=showfaq&id=10512



标签: lastpass