28 lines
1.1 KiB
JSON
28 lines
1.1 KiB
JSON
{
|
|
"sessions_login" : {
|
|
"type" : "form",
|
|
"name" : "login",
|
|
"submit" : "login@sessions",
|
|
"structure" : [
|
|
["username", "text", {"required" : true, "minimum_length" : 1, "maximum_length" : 32, "pattern" : "^[a-zA-Z_][a-zA-Z0-9_]{0,31}$"}],
|
|
["password", "password", {"required" : true, "minimum_length" : 1, "maximum_length" : 32}]
|
|
]
|
|
},
|
|
"sessions_logout" : {
|
|
"type" : "form",
|
|
"name" : "logout",
|
|
"submit" : "logout@sessions",
|
|
"structure" : []
|
|
},
|
|
"sessions_register" : {
|
|
"type" : "form",
|
|
"name" : "register",
|
|
"submit" : "register@sessions",
|
|
"structure" : [
|
|
["username", "text", {"required" : true, "minimum_length" : 1, "maximum_length" : 32, "pattern" : "^[a-zA-Z_][a-zA-Z0-9_]{0,31}$"}],
|
|
["password", "password", {"required" : true, "minimum_length" : 1, "maximum_length" : 32}],
|
|
["confirm_password", "password", {"required" : true, "minimum_length" : 1, "maximum_length" : 32}],
|
|
["email", "email", {"required" : true}]
|
|
]
|
|
}
|
|
} |