Move login templates to a specific folder

This commit is contained in:
Pierre HUBERT 2022-04-05 17:42:01 +02:00
parent fc92b9452a
commit f6403afa34
4 changed files with 3 additions and 3 deletions

View File

@ -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,