This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="MaxExpirationPeriodInDays" value="30" />
|
<add key="MaxExpirationPeriodInDays" value="40" />
|
||||||
<add key="ReminderPeriodInDays" value="7" />
|
<add key="ReminderPeriodInDays" value="7" />
|
||||||
</appSettings>
|
</appSettings>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -24,8 +24,8 @@ namespace 全自动水压检测仪
|
|||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
|
||||||
PasswordExpirationService expirationService = new PasswordExpirationService();
|
PasswordExpirationService expirationService = new PasswordExpirationService();
|
||||||
bool isExpired = expirationService.IsPasswordExpired(DateTime.Parse("2026-1-29"));
|
bool isExpired = expirationService.IsPasswordExpired(DateTime.Parse("2026-2-6"));
|
||||||
bool isExpiringSoon = expirationService.IsPasswordExpiringSoon(DateTime.Parse("2026-1-29"));
|
bool isExpiringSoon = expirationService.IsPasswordExpiringSoon(DateTime.Parse("2026-2-6"));
|
||||||
if (isExpired)
|
if (isExpired)
|
||||||
{
|
{
|
||||||
MessageBox.Show("授权已过期,请联系经销商处理");
|
MessageBox.Show("授权已过期,请联系经销商处理");
|
||||||
|
|||||||
Reference in New Issue
Block a user