mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-20 09:06:33 +00:00
Make LoginForm serializable
This commit is contained in:
parent
5f3afe900f
commit
e5c1b3259d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue