mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-29 23:11:02 +00:00
Reuse form values
This commit is contained in:
parent
74254aed4a
commit
6498dbfbb7
1 changed files with 1 additions and 4 deletions
|
@ -206,11 +206,8 @@ pub fn signup(
|
|||
let mut err = ValidationErrors::default();
|
||||
err.add("email", ValidationError::new("Email couldn't changed"));
|
||||
let form = NewUserForm {
|
||||
username: form.username.clone(),
|
||||
password: form.password.clone(),
|
||||
password_confirmation: form.password_confirmation.clone(),
|
||||
email: signup.email,
|
||||
token: form.token.clone(),
|
||||
..form.into_inner()
|
||||
};
|
||||
return Ok(Response(render!(email_signups::edit(
|
||||
&(&conn, &rockets).to_context(),
|
||||
|
|
Loading…
Reference in a new issue