blob: c1eb7932f0060bd758a1f384bda35d1b5c17e6a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
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" />
|