summaryrefslogtreecommitdiff
path: root/src/request_handler/views.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/request_handler/views.rs')
-rw-r--r--src/request_handler/views.rs15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/request_handler/views.rs b/src/request_handler/views.rs
index 1a239a4..bdd7999 100644
--- a/src/request_handler/views.rs
+++ b/src/request_handler/views.rs
@@ -61,6 +61,9 @@ pub(in super) fn login_is_logged_in() -> String {
h1(id = "heading") {
: "Currently logged in"
}
+ a(href="logout") {
+ : "Go to logout";
+ }
})
}
@@ -102,7 +105,6 @@ pub(in super) fn login_auth_success(redirect: &String) -> String {
})
}
-
pub(in super) fn login_auth_fail() -> String {
render_base_template("Login failed", box_html! {
h1(id = "heading") {
@@ -112,4 +114,15 @@ pub(in super) fn login_auth_fail() -> String {
: "Try again... "
}
})
+}
+
+pub(in super) fn logout() -> String {
+ render_base_template("Logout", box_html! {
+ h1(id = "heading") {
+ : "Logout applied"
+ }
+ a(href="login") {
+ : "go to login again..."
+ }
+ })
} \ No newline at end of file