aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/account/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/account/mod.rs')
-rw-r--r--server/src/routes/ui/account/mod.rs19
1 files changed, 11 insertions, 8 deletions
diff --git a/server/src/routes/ui/account/mod.rs b/server/src/routes/ui/account/mod.rs
index e39ef6c..c1561e3 100644
--- a/server/src/routes/ui/account/mod.rs
+++ b/server/src/routes/ui/account/mod.rs
@@ -32,8 +32,9 @@ pub async fn r_account_register() -> DynLayoutPage<'static> {
LayoutPage {
title: "Register".to_string(),
content: markup::new! {
- h1 { "Register for " @CONF.brand }
- form[method="POST", action=""] {
+ form.account[method="POST", action=""] {
+ h1 { "Register for " @CONF.brand }
+
label[for="inp-invitation"] { "Invite Code: " }
input[type="text", id="inp-invitation", name="invitation"]; br;
@@ -61,16 +62,18 @@ pub fn r_account_login() -> DynLayoutPage<'static> {
LayoutPage {
title: "Log in".to_string(),
content: markup::new! {
- h1 { "Log in to your Account" }
- form[method="POST", action=""] {
+ form.account[method="POST", action=""] {
+ h1 { "Log in to your Account" }
+
label[for="inp-username"] { "Username: " }
input[type="text", id="inp-username", name="username"]; br;
label[for="inp-password"] { "Password: " }
input[type="password", id="inp-password", name="password"]; br;
-
+
input[type="submit", value="Login"];
+
+ p { "While logged in, a cookie will be used to identify you." }
}
- p { "While logged in, a cookie will be used to identify you." }
},
}
}
@@ -80,8 +83,8 @@ pub fn r_account_logout() -> DynLayoutPage<'static> {
LayoutPage {
title: "Log out".to_string(),
content: markup::new! {
- h1 { "Log out" }
- form[method="POST", action=""] {
+ form.account[method="POST", action=""] {
+ h1 { "Log out" }
input[type="submit", value="Log out."];
}
},