fix
All checks were successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
JMARyA 2025-01-12 03:48:38 +01:00
parent 95469da4f8
commit 37f65b6353
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -86,7 +86,7 @@ impl User {
sqlx::query("UPDATE users SET \"password\" = $1 WHERE username = $2;") sqlx::query("UPDATE users SET \"password\" = $1 WHERE username = $2;")
.bind(bcrypt::hash(new, bcrypt::DEFAULT_COST).unwrap()) .bind(bcrypt::hash(new, bcrypt::DEFAULT_COST).unwrap())
.bind(&self.username) .bind(&self.username)
.fetch_one(get_pg!()) .execute(get_pg!())
.await .await
.unwrap(); .unwrap();