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

This commit is contained in:
JMARyA 2024-12-30 21:23:28 +01:00
parent d6555edc29
commit 00bb6f152d
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
8 changed files with 332 additions and 11 deletions

View file

@ -81,7 +81,6 @@ impl User {
/// Change the password of a User
///
/// Returns a Result indicating whether the password change was successful or not
#[must_use]
pub async fn passwd(self, old: &str, new: &str) -> Result<(), ()> {
if self.verify_pw(old) {
sqlx::query("UPDATE users SET \"password\" = $1 WHERE username = $2;")