⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abuserpassworddlg.pas

📁 1. It is located in the root directory - SecurityBuilderDemo.exe. Leave password box blank and click
💻 PAS
字号:
unit abUserPasswordDlg;

interface

uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls, 
  Buttons, ActnList;

type
  TdlgUserPassword = class(TForm)
    Label1: TLabel;
    edtCurrentPassword: TEdit;
    OKBtn: TButton;
    CancelBtn: TButton;
    Label2: TLabel;
    edtNewPassword: TEdit;
    Label3: TLabel;
    edtNewPasswordRetype: TEdit;
    ActionList1: TActionList;
    actOK: TAction;
    actCancel: TAction;
    procedure actOKExecute(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    fsCurrentPassword: string[40];
  end;

var
  dlgUserPassword: TdlgUserPassword;

implementation

{$R *.DFM}

uses Dialogs, abCript;


procedure TdlgUserPassword.actOKExecute(Sender: TObject);
begin
  if (fsCurrentPassword <> TCripter.Cript(edtCurrentPassword.Text)) or
     (edtNewPassword.Text <> edtNewPasswordRetype.Text) then
  begin
    ShowMessage('Invalid current or new password. Please retype.');
    edtCurrentPassword.SetFocus;
    ModalResult := mrNone;
  end;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -