Make LoginForm serializable
This commit is contained in:
parent
5f3afe900f
commit
e5c1b3259d
|
@ -36,7 +36,7 @@ fn new_message(user: Option<User>, message: Message) -> Template {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[derive(FromForm, Validate)]
|
#[derive(FromForm, Validate, Serialize)]
|
||||||
struct LoginForm {
|
struct LoginForm {
|
||||||
#[validate(length(min = "1"))]
|
#[validate(length(min = "1"))]
|
||||||
email_or_name: String,
|
email_or_name: String,
|
||||||
|
|
Loading…
Reference in New Issue