ChangePassword Command

Purpose

Opens a standard dialog box that is used to change password of the current user.

Parameters of Use

Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:

Value type Description
IMetabase The repository, in which the current user password must be changed.

Application Features

None

Example

Executing the example requires a form with the Button1 button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Target: IUiCommandTarget;
    Context: IUiCommandExecutionContext;
Begin
    Target := WinApplication.Instance.GetPluginTarget("Adm");
    Context := Target.CreateExecutionContext;
    Context.Data := MetabaseClass.Active;
    Target.Execute("ChangePassword", Context);
End Sub Button1OnClick;

Clicking the button opens a standard dialog box that is used to change password for the current user.

See also:

IUiCommandTarget.Execute