怎么办登录时记住我? [英] how to do Remember me in login ?

查看:213
本文介绍了怎么办登录时记住我?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



这里我想记住我的复选框,请在我选中并取消选中时告诉我如何存储用户名和密码。



感谢你。

hello friends,

here i want to keep remember me check box , please suggest me how to store the username and password when remember me is checked and unchecked .

thanking you .

推荐答案

有很多选择可以做到这一点。在示例中,您可以使用文本或二进制配置文件,数据库等...如果您使用WinForms创建应用程序,很好的解决方案是与Applicatin设置集成。试试这个: C#中的Windows窗体用户设置 [ ^ ]

如果你需要存储密码,请记住哈希,不要以纯文本形式存储。
There is many options to do that. In example you can use text or binary config files, database and so on... If you are making application using WinForms, nice solution is to integrate with Applicatin Settings. Try this: Windows Forms User Settings in C#[^]
If you need to store passwords remember to hash them and DO NOT store as plain text.


这篇关于怎么办登录时记住我?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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