лаба 7 готова ура
This commit is contained in:
parent
b6f5f5e445
commit
379c28a63c
@ -6,6 +6,6 @@
|
||||
<add key="PopHost" value="pop.gmail.com" />
|
||||
<add key="PopPort" value="995" />
|
||||
<add key="MailLogin" value="laba7lala@gmail.com" />
|
||||
<add key="MailPassword" value="passlaba7" />
|
||||
<add key="MailPassword" value="sdhd yubx subc obpk" />
|
||||
</appSettings>
|
||||
</configuration>
|
||||
|
7
TravelCompany/TravelCompany/FormMain.Designer.cs
generated
7
TravelCompany/TravelCompany/FormMain.Designer.cs
generated
@ -65,8 +65,7 @@
|
||||
// toolStrip1
|
||||
//
|
||||
toolStrip1.ImageScalingSize = new Size(20, 20);
|
||||
toolStrip1.Items.AddRange(new ToolStripItem[] { toolStripDropDownButton1, toolStripDropDownButton2, DoWorkToolStripLabel });
|
||||
toolStrip1.Items.AddRange(new ToolStripItem[] { toolStripDropDownButton1, toolStripDropDownButton2, toolStripLabel1, почтаtoolStripLabel });
|
||||
toolStrip1.Items.AddRange(new ToolStripItem[] { toolStripDropDownButton1, toolStripDropDownButton2, DoWorkToolStripLabel, почтаtoolStripLabel });
|
||||
toolStrip1.Location = new Point(0, 0);
|
||||
toolStrip1.Name = "toolStrip1";
|
||||
toolStrip1.Size = new Size(1482, 27);
|
||||
@ -148,10 +147,6 @@
|
||||
DoWorkToolStripLabel.Size = new Size(100, 24);
|
||||
DoWorkToolStripLabel.Text = "Запуск работ";
|
||||
DoWorkToolStripLabel.Click += DoWorkToolStripLabel_Click;
|
||||
toolStripLabel1.Name = "toolStripLabel1";
|
||||
toolStripLabel1.Size = new Size(100, 24);
|
||||
toolStripLabel1.Text = "Запуск работ";
|
||||
toolStripLabel1.Click += toolStripLabel1_Click;
|
||||
//
|
||||
// почтаtoolStripLabel
|
||||
//
|
||||
|
@ -46,7 +46,7 @@ namespace TravelCompany
|
||||
PopPort = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["PopPort"])
|
||||
});
|
||||
|
||||
var timer = new System.Threading.Timer(new TimerCallback(MailCheck!), null, 0, 100000);
|
||||
var timer = new System.Threading.Timer(new TimerCallback(MailCheck!), null, 0, 10000);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace TravelCompanyBusinessLogic.BusinessLogic
|
||||
{
|
||||
throw new ArgumentNullException("Неправильно введена почта пользователя", nameof(model.Email));
|
||||
}
|
||||
if (string.IsNullOrEmpty(model.Password) || !Regex.IsMatch(model.Password, @"^(?=.*[A-Za-z])(?=.*\d)(?=.*[^A-Za-z0-9\n]).{10,50}$"))
|
||||
if (string.IsNullOrEmpty(model.Password) || !Regex.IsMatch(model.Password, @"^(?=.*[A-Za-z])(?=.*\d)(?=.*[^A-Za-z0-9\n]).{5,50}$"))
|
||||
{
|
||||
throw new ArgumentNullException("Неправильно введен пароль пользователя", nameof(model.Password));
|
||||
}
|
||||
|
@ -12,5 +12,5 @@
|
||||
"PopHost": "pop.gmail.com",
|
||||
"PopPort": "995",
|
||||
"MailLogin": "laba7lala@gmail.com",
|
||||
"MailPassword": "passlaba7"
|
||||
"MailPassword": "sdhd yubx subc obpk"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user