使用C#Library创建登录系统,然后将其连接到WindowsFormApp [英] Create A Login System Using C# Library then connect it to WindowsFormApp

查看:90
本文介绍了使用C#Library创建登录系统,然后将其连接到WindowsFormApp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用C#Library创建登录系统然后将其连接到WindowsFormApp,是否可能?我一直在谷歌搜索,我一无所获。

Create A Login System Using C# Library then connect it to WindowsFormApp, is it possible? I've been searching all around in google and i found nothing.

推荐答案

基础知识如下


  • 需要一个容器来存储登录信息,至少是用户名和密码。容器可以是只有您的应用程序可以读取的二进制文件或者是被密码传输的数据库。
  • 具有读取用户名/密码并提供成功或失败登录的逻辑的类项目。
  • 一个Windows窗体应用程序,它调用此类项目并提供最多三次尝试(尝试计数可以是您想要的任何内容)。

我们可以获得更多进展,例如记录失败的登录尝试,提供一种重置密码的方法,可以采取多种形式,但基本的做法是向管理员发送电子邮件以进行重置。

We can get more advance e.g. record failed login attempts, provide a method to reset password which can take several forms but the basics would be to send an email to an admin for a reset.

以下
代码示例
使用密码ms-access(有些工作可以更改为做sql-server或二进制文件)数据库来做登录。不应在纯文本文件中使用的内容,因为任何人都可以修改该文件以访问您的应用。

The following code sample uses a passworded ms-access (with some work this can be changed to do sql-server or binary file) database to do the login. What should not be used in a plain text file as anyone can modify the file to gain access to your app.


这篇关于使用C#Library创建登录系统,然后将其连接到WindowsFormApp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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