improve logging
This commit is contained in:
@ -277,7 +277,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),
|
||||
|
Reference in New Issue
Block a user