Fix a issue with account activation
This commit is contained in:
parent
fc1104ec89
commit
4bfd30f5dd
@ -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)?,
|
||||||
|
Loading…
Reference in New Issue
Block a user