且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何输入上次登录名作为默认登录名和密码

更新时间:2023-01-02 10:51:23

您可以使用 cookies 或任何其他客户端选项来输入用户名.

为什么要保留密码?不应该这样密码字段不应保留.不知道您从这种用于下次登录的永久密码的逻辑中发生了什么...您是否无法想到一种情况,用户A登录并注销,然后用户B来查找用户的用户名和密码已经填写好了吗?

这是一个安全漏洞,如果您下次登录时仍需要保留密码,***将其完全删除!
You can do for username using cookies or any other client side option.

Why do you want to keep password? It shouldn''t be. Password fields are not supposed to be carry forward. Don''t know where from this logic of persisting password for next login occurred to you... couldn''t you think of a scenario User A logs in and logs out and then User B comes and find both username and password of User A already filled in?

It''s a security breach and in case you still need to persist password at next login, better would be to remove it altogether!


谢谢.......... ... sandeep:)
thank you ............. sandeep:)