Lastpass changing username

2019-06-20 06:11发布

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?

enter image description here

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.

标签: lastpass
1条回答
ら.Afraid
2楼-- · 2019-06-20 06:49

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

查看更多
登录 后发表回答