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};
|
||||
|
||||
#[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,
|
||||
|
Loading…
Reference in New Issue
Block a user