Fix a issue with account activation

This commit is contained in:
Pierre HUBERT 2023-06-13 10:54:10 +02:00
parent fc1104ec89
commit 4bfd30f5dd

View File

@ -225,7 +225,7 @@ pub async fn update_account(user: &User) -> anyhow::Result<()> {
users::dsl::time_gen_delete_account_token users::dsl::time_gen_delete_account_token
.eq(user.time_gen_delete_account_token), .eq(user.time_gen_delete_account_token),
users::dsl::delete_account_token.eq(user.delete_account_token.clone()), users::dsl::delete_account_token.eq(user.delete_account_token.clone()),
users::dsl::time_activate.eq(time() as i64), users::dsl::time_activate.eq(user.time_activate as i64),
users::dsl::password.eq(user.password.clone()), users::dsl::password.eq(user.password.clone()),
)) ))
.execute(conn)?, .execute(conn)?,