/
register.yml
61 lines (60 loc) · 1.24 KB
/
register.yml
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
---
load_config_file: __path_to(root/forms/defaults.yml)__
id: register
elements:
- type: Text
name: login
label_loc: Login
filters:
- HTMLEscape
- LowerCase
- TrimEdges
constraints:
- Required
- Word
- type: Password
name: pass
label_loc: Password
constraints:
- Required
- type: Equal
others: confirm_password
message_loc: Password did not match
- type: Length
min: 4
max: 14
message_loc: Password must be between 4 and 14 chars
- type: Password
name: confirm_password
label_loc: Repeat password
- type: Text
name: email
label_loc: Email
filters:
- HTMLEscape
- TrimEdges
constraints:
- Email
- Required
- type: Text
name: name
label_loc: Name
filters:
- HTMLEscape
- TrimEdges
constraints:
- Required
- type: Text
name: antispam
label_loc: What is this wiki powered by (look at the bottom; 8 letters, all lowercase)?
filters:
- HTMLEscape
- TrimEdges
constraints:
- Required
- type: Regex
regex: mojomojo|catalyst
message_loc: Go away spammer!
- type: Submit
name: submit
value_loc: Register