refactor: Use Redirect::to instead of Redirect::temporary for all redirects.

This commit is contained in:
2026-03-03 16:11:48 +00:00
parent 50a3caf33c
commit 626e76adba
2 changed files with 8 additions and 8 deletions

View File

@@ -89,7 +89,7 @@ pub async fn add_user(
.await
.context("Failed to insert new user into database")?;
Ok(Redirect::temporary("/__dungeon").into_response())
Ok(Redirect::to("/__dungeon").into_response())
}
pub async fn delete_user(
@@ -111,7 +111,7 @@ pub async fn delete_user(
.await
.context(format!("Failed to delete user with id {}", id))?;
Ok(Redirect::temporary("/__dungeon").into_response())
Ok(Redirect::to("/__dungeon").into_response())
}
#[derive(Deserialize)]
@@ -138,5 +138,5 @@ pub async fn change_password(
.await
.context(format!("Failed to update password for user with id {}", id))?;
Ok(Redirect::temporary("/__dungeon").into_response())
Ok(Redirect::to("/__dungeon").into_response())
}