我怎样才能写我的HTML登录表单来显式启用LastPass? [英] How can I write my HTML login form to explicitly enable LastPass?

查看:142
本文介绍了我怎样才能写我的HTML登录表单来显式启用LastPass?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何编写我的HTML登录表单以保证与LastPass一起工作,或者至少尽可能使其工作?有些网站要求保存所有输入数据与LastPass正常工作,但作为网站开发者,我正在寻找更好的东西。我需要做些什么来确保LastPass默认模式(保存网站)尽可能完美地工作?我找不到任何官方文档,甚至没有任何好的博客文章和建议,但这肯定会回答我的问题。 (1)证据和/或(2)跨越多个密码管理者的策略的额外功劳。

/ p>

解决方案

我认为大多数密码管理器试图通过检查 name 属性和 css class / id 。我尝试给我的输入名称提供一个人类使用的名称,例如 username password city 。对于大多数密码管理器来说,这一直奏效Chrome的经理似乎也明白这一点。


How can I write my HTML login form to be guaranteed to work with LastPass, or at least make it as likely as possible to work? Some sites require the "Save All Entered Data" to work properly with LastPass, but as a site developer I'm looking for something better. What do I need to do to ensure LastPass default mode ("Save Site") works as flawlessly as possible? I can't find any official documentation, or really even any good blog posts with suggestions, but that would certainly answer my question. What does ideal or at least empirically successful markup look like?

Extra credit for (1) evidence and/or (2) a strategy that works across multiple password managers.

解决方案

I think most password manager try to get a clue for what a input field is meant for by examining the name attribute and the css class/id. I try to give my inputs names which a used by humans like username, password, city something like this. For the most password manager this has worked. Also Chrome's manager seems to understand it.

这篇关于我怎样才能写我的HTML登录表单来显式启用LastPass?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆