当我们输入3次密码后,将使用C#阻止电子邮件 [英] when we entered password in 3 times that emails will be block using c#

查看:89
本文介绍了当我们输入3次密码后,将使用C#阻止电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi ..

当我们输入3次密码时,将使用c#阻止电子邮件ID?
任何人都知道请告诉我..

hi..

when we entered password in 3 times that email id will be block using c#?
any own knows pls tell me..

推荐答案



要阻止电子邮件,您可以例如以txt-file形式编写此电子邮件.
在检查密码之前,请阅读txt-File.如果电子邮件位于txt文件中,则可以阻止它们.

要读取/写入文件,可以使用StreamReader/StreamWriter.
Hi,

to block the EMail you can write this EMail in txt-File for example.
Before you check the password, read th txt-File. If the Email is in txt-File you can block them.

For reading/writing Files you can use StreamReader/StreamWriter.


这是邮件服务器上的一项策略.因此,如果您自己创建了一个邮件服务器,则可以自己存储失败尝试的次数(不要忘记在成功登录后重置).否则,您需要更改邮件服务器的策略.

祝你好运!
This is a policy on the mail server. So if you created a mail server yourself you can store the number of failed attempts yourself (don''t forget to reset when the login is successful). Otherwise you need to change the policy of the mail server.

Good luck!


这篇关于当我们输入3次密码后,将使用C#阻止电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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