-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogin.json
More file actions
85 lines (85 loc) · 3.37 KB
/
login.json
File metadata and controls
85 lines (85 loc) · 3.37 KB
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
{
"idents":[
"input=Email@email",
["radio=Newsletter only@newsletter/news-or-account", "fieldset", [
"checkbox:checked=General newsletter@news-general",
"checkbox=Podcast episodes@news-mot-podcast",
"checkbox=Products and features@news-cb-products",
"checkbox=Fundraising updates@news-cb-fundraising",
"para=Select the emails you would like to receive."]
],
["radio=Login or Create Account@account/news-or-account", "fieldset=_", [
["radio=Use password@password/auth-method", "password=Password@password"],
"radio=Email a code/link@send-email/auth-method",
["para=An account gives you early access to our Labs free-tier, and information about how the project is run. Extra sections are available if you are a donor, investor, or contributor to Compare Basic."],
["checkbox=Register new user@register", "input=Fullname@fullname",
"checkbox=Sign up for our Newsletters@newsletter-signup", "fieldset", [
"checkbox:checked=General newsletter@news-general",
"checkbox=Podcast episodes@news-mot-podcast",
"checkbox=Products and features@news-cb-products",
"checkbox=Fundraising updates@news-cb-funding",
"para=Select the emails you would like to receive."]
]
]
],
"button=Submit@submit"
],
"action":"/auth/login",
"injest": {
"email": "process=email-token@quote",
"auth-method": true,
"password": "depends=password@auth-method",
"register": false,
"fullname": "depends=on@register",
"news-or-account":true,
"news-general": "value=off@missing",
"news-mot-podcast": "value=off@missing",
"news-cb-products": "value=off@missing",
"news-cb-funding": "value=off@missing"
},
"persist": {
"email": "process=email-token@quote",
"date": "date=submission-date@now",
"news-general": "value=off@missing",
"news-mot-podcast": "value=off@missing",
"news-cb-products": "value=off@missing",
"news-cb-funding": "value=off@missing"
},
"persist-name": "newsletter",
"validation":{
"password":{
"rules": [
".{8,32}",
false,
"[A-Z]{1}",
false,
"[a-z]{1}",
false,
"[0-9]{1}",
false,
"[-,._$@!~+=/:;?#%^&*]{1}"
],
"description":[
"8-32 characters long,",
" one of each: ",
"a capital",
", ",
"a lower case letter",
", ",
"a number",
", and ",
"a special character - _ , . : ; # ? ^ & * $ @ ! ~ + = /."
]
},
"email": {
"rules":[".+@.+\\.[a-zA-Z]{2,}"],
"description": ["Enter a valid email"]
},
"fullname": {
"rules":[".{2,}"],
"description": ["Enter your full name"]
},
"auth-method":{"description": ["Select and authentication method or newsletter signup"]},
"news-or-account":{"description": ["Select an action"]}
}
}