Lastpass changing username

空扰寡人 提交于 2019-12-08 20:46:22

问题


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



来源:https://stackoverflow.com/questions/47148685/lastpass-changing-username

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!