linuxrouter/docker/routlin-dash/app/pages/accountlogin/content.json

86 lines
2.2 KiB
JSON
Raw Normal View History

2026-05-27 20:56:30 -04:00
{
"client_requirement": "client_is_nothing=",
"items": [
{
"type": "auth_wrapper",
"client_requirement": "client_is_nothing=",
"items": [
{
"type": "auth_card",
"items": [
{
"type": "h1",
"text": "Log In"
},
{
"type": "p",
"text": "Enter your credentials to access the dashboard."
},
{
"type": "hr"
},
{
"type": "form",
2026-05-27 22:04:04 -04:00
"action": "/action/accountlogin/form_login",
2026-05-27 20:56:30 -04:00
"method": "post",
"items": [
{
"type": "field",
"label": "Email Address",
"name": "email",
"input_type": "text",
2026-06-10 15:24:39 -04:00
"placeholder": "you@example.com",
"validate": "VALIDATION_EMAIL"
2026-05-27 20:56:30 -04:00
},
{
"type": "field",
"label": "Password",
"name": "password",
"input_type": "password",
"placeholder": "Password"
},
{
"type": "button_primary",
2026-05-27 22:04:04 -04:00
"action": "/action/accountlogin/form_login",
2026-05-27 20:56:30 -04:00
"method": "post",
"text": "Log In",
"class": "btn-full"
}
]
},
{
"type": "p",
"text": "Need to complete your account?",
"link": {
2026-05-27 22:04:04 -04:00
"action": "/accountcreate",
2026-05-27 20:56:30 -04:00
"text": "Create Account"
}
}
]
}
]
},
{
"type": "section",
"client_requirement": "client_is_viewer+",
"items": [
{
"type": "h1",
"text": "Already logged in."
},
{
"type": "p",
"text": "You are already authenticated."
},
{
"type": "spacer"
},
{
"type": "button_primary",
2026-05-27 22:04:04 -04:00
"action": "/overview",
2026-05-27 20:56:30 -04:00
"text": "Go to Overview"
}
]
}
]
}