diff options
Diffstat (limited to 'app/php/pages/Profile.page')
-rw-r--r-- | app/php/pages/Profile.page | 55 |
1 files changed, 3 insertions, 52 deletions
diff --git a/app/php/pages/Profile.page b/app/php/pages/Profile.page index 71ed112..b66a50b 100644 --- a/app/php/pages/Profile.page +++ b/app/php/pages/Profile.page @@ -1,54 +1,5 @@ <com:TContent ID="Content"> - Change password<br /> - Current password: - <com:TTextBox ID="Password" - TextMode="Password" - ValidationGroup="ChangePasswordGroup" /> - <com:TRequiredFieldValidator - ControlToValidate="Password" - Display="Dynamic" - ErrorMessage="Current password cannot be empty" - ValidationGroup="ChangePasswordGroup" /> - <com:TCustomValidator - ControlToValidate="Password" - OnServerValidate="checkPassword" - Display="Dynamic" - ErrorMessage="Password is incorrect" - ValidationGroup="ChangePasswordGroup" /> - <br /> - New password: - <com:TTextBox ID="NewPassword" - TextMode="Password" - ValidationGroup="ChangePasswordGroup" /> - <com:TRequiredFieldValidator - ControlToValidate="NewPassword" - Display="Dynamic" - ErrorMessage="New password cannot be empty" - ValidationGroup="ChangePasswordGroup" /> - <br /> - Repeat password: - <com:TTextBox ID="ReNewPassword" - TextMode="Password" - ValidationGroup="ChangePasswordGroup" /> - <com:TRequiredFieldValidator - ControlToValidate="ReNewPassword" - Display="Dynamic" - ErrorMessage="New password cannot be empty" - ValidationGroup="ChangePasswordGroup" /> - <com:TCompareValidator - ControlToValidate="ReNewPassword" - ControlToCompare="NewPassword" - DataType="String" - Operator="Equal" - Display="Dynamic" - ErrorMessage="Passwords don't match" - ValidationGroup="ChangePasswordGroup" /> - <br /> - <com:TButton - Text="Change password" - OnCommand="changePassword" - ValidationGroup="ChangePasswordGroup" /> - <com:TLabel ID="SuccessMessage" - Text="Your password has been changed" - Visible="false" /> + <com:PasswordChange> + <prop:UserToChange><%= $this->User %></prop:UserToChange> + </com:PasswordChange> </com:TContent> |