//---------------------------------------------------------------------------

#ifndef RequestPasswordChange_FormH
#define RequestPasswordChange_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "TntDialogs.hpp"
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
class TRequestPasswordChangeForm : public TTntForm
{
__published:	// IDE-managed Components
	TTntPanel *Panel1;
	TTntButton *OkButton;
	TTntButton *CancelButton;
	TTntPanel *Panel2;
	TTntLabel *Label1;
	TTntLabel *Label2;
	TEdit *ModifyOldPasswordEdit;
	TTntLabel *Label3;
	TEdit *ModifyNewPasswordEdit;
	TTntLabel *Label4;
	TEdit *ModifyNewRecheckEdit;
	TTntLabel *Label5;
	void __fastcall OkButtonClick(TObject *Sender);
	void __fastcall PasswordEditClick(TObject *Sender);
private:	// User declarations
  WideString MsgList[5];
	AnsiString UserName;
  int m_BeforUnlock;
	bool __fastcall ChangePassword(AnsiString password);
  void __fastcall GetDefaultString();
public:		// User declarations
	__fastcall TRequestPasswordChangeForm(TComponent* Owner, AnsiString userName,int BeforeLock);
  int CheckLastPassword(String section,String password);
  void WriteLastPassword(String section ,String password );
};
//---------------------------------------------------------------------------
extern PACKAGE TRequestPasswordChangeForm *RequestPasswordChangeForm;
//---------------------------------------------------------------------------
#endif
