我正在开发一个用angular编写的webapp,似乎无法与各种密码管理器(Dashlane,LastPass等)进行交互.是否有关于
HTML标记和身份验证流程的指南以确保兼容性?这不仅适用于登录流程,还包括密码重置,用户名更改等内容.
解决方法
它似乎是
this question has already been asked,但不是在AngularJS的上下文中.
从https://lastpass.com/support.php?cmd=showfaq&id=3385开始
While LastPass can work on most website logins,if you are developing your own site you can help make it LastPass-compatible by using a simple form submit with a username,password,and submit field.
Here’s an example:
<form action="https://mypage.com/blah" method="post"> <input type="text" name="username" id="username" value=""/> <input type="password" name="password" id="password" value=""/> <input type="submit" value="LOGIN"/> </form>
As far as what to avoid — always create the form on page load,even if you hide and show it to people clicking log in,it’s better to be there on page load. Avoid ajax for logging in and avoid method=GET