Merge pull request 'improve logging' (#1022) from improve-logging into main
Some checks failed
CI/CD Pipeline / test (push) Failing after 10m12s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

Reviewed-on: #1022
This commit is contained in:
2025-05-14 23:01:39 +02:00
2 changed files with 12 additions and 12 deletions

View File

@ -276,7 +276,7 @@ async fn resetpw(db: &State<SqlitePool>, admin: ManageUserUser, user: i32) -> Fl
format!("{} has resetted the pw for {}", admin.user.name, user.name),
)
.await;
user.reset_pw(db).await;
user.reset_pw(db, &admin).await;
Flash::success(
Redirect::to("/admin/user"),
format!("Passwort von {} zurückgesetzt", user.name),