From f6403afa345c55546e898e1bd14625fb72d89050 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Tue, 5 Apr 2022 17:42:01 +0200 Subject: [PATCH] Move login templates to a specific folder --- src/controllers/login_controller.rs | 6 +++--- templates/{ => login}/base_login_page.html | 0 templates/{ => login}/login.html | 0 templates/{ => login}/password_reset.html | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename templates/{ => login}/base_login_page.html (100%) rename templates/{ => login}/login.html (100%) rename templates/{ => login}/password_reset.html (100%) diff --git a/src/controllers/login_controller.rs b/src/controllers/login_controller.rs index 026133b..55ca681 100644 --- a/src/controllers/login_controller.rs +++ b/src/controllers/login_controller.rs @@ -12,7 +12,7 @@ use crate::data::remote_ip::RemoteIP; use crate::data::session_identity::{SessionIdentity, SessionStatus}; #[derive(Template)] -#[template(path = "base_login_page.html")] +#[template(path = "login/base_login_page.html")] struct BaseLoginPage { danger: String, success: String, @@ -22,14 +22,14 @@ struct BaseLoginPage { } #[derive(Template)] -#[template(path = "login.html")] +#[template(path = "login/login.html")] struct LoginTemplate { _parent: BaseLoginPage, login: String, } #[derive(Template)] -#[template(path = "password_reset.html")] +#[template(path = "login/password_reset.html")] struct PasswordResetTemplate { _parent: BaseLoginPage, min_pass_len: usize, diff --git a/templates/base_login_page.html b/templates/login/base_login_page.html similarity index 100% rename from templates/base_login_page.html rename to templates/login/base_login_page.html diff --git a/templates/login.html b/templates/login/login.html similarity index 100% rename from templates/login.html rename to templates/login/login.html diff --git a/templates/password_reset.html b/templates/login/password_reset.html similarity index 100% rename from templates/password_reset.html rename to templates/login/password_reset.html