Make LoginForm serializable

This commit is contained in:
Bat 2018-07-06 21:59:17 +02:00
parent 5f3afe900f
commit e5c1b3259d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ fn new_message(user: Option<User>, message: Message) -> Template {
}
#[derive(FromForm, Validate)]
#[derive(FromForm, Validate, Serialize)]
struct LoginForm {
#[validate(length(min = "1"))]
email_or_name: String,