blob: 0c7e1464d9f6c6794d60fdaf78f001989bc281de (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
<com:TMultiView ID="MV">
<com:TView ID="FormPanel">
<%[ Username: ]%>
<com:TTextBox ID="Login"
ValidationGroup="SignupGroup" />
<com:TRequiredFieldValidator
ControlToValidate="Login"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ Username cannot be empty ]%></prop:ErrorMessage>
</com:TRequiredFieldValidator>
<com:TRegularExpressionValidator
ControlToValidate="Login"
RegularExpression="[a-zA-Z0-9_]{6,255}"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ Username must contain 6-255 characters, all Latin alphanumeric or underscore ]%></prop:ErrorMessage>
</com:TRegularExpressionValidator>
<com:TCustomValidator
ControlToValidate="Login"
OnServerValidate="checkUsername"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ Username already exists ]%></prop:ErrorMessage>
</com:TCustomValidator>
<br />
<%[ Password: ]%>
<com:TTextBox ID="Password"
TextMode="Password"
ValidationGroup="SignupGroup" />
<com:TRequiredFieldValidator
ControlToValidate="Password"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ Password cannot be empty ]%></prop:ErrorMessage>
</com:TRequiredFieldValidator>
<br />
<%[ Repeat password: ]%>
<com:TTextBox ID="RePassword"
TextMode="Password"
ValidationGroup="SignupGroup" />
<com:TRequiredFieldValidator
ControlToValidate="RePassword"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ Password cannot be empty ]%></prop:ErrorMessage>
</com:TRequiredFieldValidator>
<com:TCompareValidator
ControlToValidate="RePassword"
ControlToCompare="Password"
DataType="String"
Operator="Equal"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ Passwords don't match ]%></prop:ErrorMessage>
</com:TCompareValidator>
<br />
<%[ E-mail: ]%>
<com:TTextBox ID="EMail"
ValidationGroup="SignupGroup" />
<com:TRequiredFieldValidator
ControlToValidate="EMail"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ E-mail address cannot be empty ]%></prop:ErrorMessage>
</com:TRequiredFieldValidator>
<com:TEmailAddressValidator
ControlToValidate="EMail"
Display="Dynamic"
ValidationGroup="SignupGroup"
CheckMXRecord="false">
<prop:ErrorMessage><%[ E-mail address is invalid ]%></prop:ErrorMessage>
</com:TEmailAddressValidator>
<com:TCustomValidator
ControlToValidate="EMail"
OnServerValidate="checkEMail"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ E-mail already registered ]%></prop:ErrorMessage>
</com:TCustomValidator>
<br />
<%[ Repeat e-mail: ]%>
<com:TTextBox ID="ReEMail"
ValidationGroup="SignupGroup" />
<com:TRequiredFieldValidator
ControlToValidate="ReEMail"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ E-mail address cannot be empty ]%></prop:ErrorMessage>
</com:TRequiredFieldValidator>
<com:TEmailAddressValidator
ControlToValidate="ReEMail"
Display="Dynamic"
ValidationGroup="SignupGroup"
CheckMXRecord="false">
<prop:ErrorMessage><%[ E-mail address is invalid ]%></prop:ErrorMessage>
</com:TEmailAddressValidator>
<com:TCompareValidator
ControlToValidate="ReEMail"
ControlToCompare="EMail"
DataType="String"
Operator="Equal"
Display="Dynamic"
ValidationGroup="SignupGroup">
<prop:ErrorMessage><%[ E-mails don't match ]%></prop:ErrorMessage>
</com:TCompareValidator>
<br />
<com:TButton
OnCommand="registerUser"
ValidationGroup="SignupGroup">
<prop:Text><%[ Create ]%></prop:Text>
</com:TButton>
<com:TValidationSummary
ValidationGroup="SignupGroup" />
</com:TView>
<com:TView ID="SuccessPanel">
<%[ Registration finished without problems. Please activate your account with the link we've sent you. ]%>
</com:TView>
</com:TMultiView>
|