46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using DevExpress.XtraEditors;
|
|
using UI.Framework.Forms;
|
|
|
|
namespace FLSystem.Forms
|
|
{
|
|
public partial class VerifyPassForm : BaseForm
|
|
{
|
|
private string pass = string.Empty;
|
|
public VerifyPassForm(string pass)
|
|
{
|
|
InitializeComponent();
|
|
this.pass = pass;
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(textBox2.Text)) throw new Exception("密码不能为空");
|
|
if (CsharpHttpHelper.HttpExtend.GetMD5String(this.textBox2.Text.Trim()) != pass)
|
|
throw new Exception("抱歉,身份验证失败!");
|
|
this.DialogResult = DialogResult.OK;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
ShowError(ex);
|
|
}
|
|
|
|
this.Close();
|
|
}
|
|
|
|
private void VerifyPassForm_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
} |