53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
unit DDebugPW;
|
|
|
|
interface
|
|
|
|
uses
|
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
|
|
|
|
type
|
|
TDlgDebugPW = class(TForm)
|
|
Label1: TLabel;
|
|
edPass: TEdit;
|
|
btnOk: TButton;
|
|
btnCancel: TButton;
|
|
procedure btnOkClick(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
DlgDebugPW: TDlgDebugPW;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure TDlgDebugPW.btnOkClick(Sender: TObject);
|
|
var
|
|
sChkPass: String;
|
|
begin
|
|
edPass.Text := Trim(edPass.Text);
|
|
if edPass.Text = '' then
|
|
begin
|
|
MessageBox(Handle, PChar('비밀번호를 입력해 주세요.'), PChar(Caption), MB_ICONWARNING or MB_OK);
|
|
edPass.SetFocus;
|
|
exit;
|
|
end;
|
|
|
|
sChkPass := 'BSOne@' + FormatDateTime('yyyymmdd', Now);
|
|
if edPass.Text <> sChkPass then
|
|
begin
|
|
MessageBox(Handle, PChar('비밀번호가 맞지 않습니다.'), PChar(Caption), MB_ICONWARNING or MB_OK);
|
|
edPass.SetFocus;
|
|
exit;
|
|
end;
|
|
|
|
ModalResult := mrOk;
|
|
end;
|
|
|
|
end.
|