Move login templates to a specific folder
This commit is contained in:
parent
fc92b9452a
commit
f6403afa34
@ -12,7 +12,7 @@ use crate::data::remote_ip::RemoteIP;
|
|||||||
use crate::data::session_identity::{SessionIdentity, SessionStatus};
|
use crate::data::session_identity::{SessionIdentity, SessionStatus};
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "base_login_page.html")]
|
#[template(path = "login/base_login_page.html")]
|
||||||
struct BaseLoginPage {
|
struct BaseLoginPage {
|
||||||
danger: String,
|
danger: String,
|
||||||
success: String,
|
success: String,
|
||||||
@ -22,14 +22,14 @@ struct BaseLoginPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "login.html")]
|
#[template(path = "login/login.html")]
|
||||||
struct LoginTemplate {
|
struct LoginTemplate {
|
||||||
_parent: BaseLoginPage,
|
_parent: BaseLoginPage,
|
||||||
login: String,
|
login: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "password_reset.html")]
|
#[template(path = "login/password_reset.html")]
|
||||||
struct PasswordResetTemplate {
|
struct PasswordResetTemplate {
|
||||||
_parent: BaseLoginPage,
|
_parent: BaseLoginPage,
|
||||||
min_pass_len: usize,
|
min_pass_len: usize,
|
||||||
|
Loading…
Reference in New Issue
Block a user