Make LoginForm serializable

This commit is contained in:
Bat 2018-07-06 21:59:17 +02:00
parent 5f3afe900f
commit e5c1b3259d

View File

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