26 lines
677 B
Rust
26 lines
677 B
Rust
use askama::Template;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Default, Template, Deserialize, Serialize)]
|
|
#[template(path = "signup.html")]
|
|
pub struct CreateUser {
|
|
pub username: String,
|
|
pub displayname: Option<String>,
|
|
pub email: Option<String>,
|
|
pub password: String,
|
|
pub pw_verify: String,
|
|
}
|
|
|
|
#[derive(Debug, Default, Template, Deserialize, Serialize)]
|
|
#[template(path = "login_post.html")]
|
|
pub struct LoginPost {
|
|
pub username: String,
|
|
pub password: String,
|
|
}
|
|
|
|
#[derive(Debug, Default, Template, Deserialize, Serialize)]
|
|
#[template(path = "login_get.html")]
|
|
pub struct LoginGet {
|
|
pub username: String,
|
|
pub password: String,
|
|
}
|