feat: automatically switch to index and fill in newly given creds

This commit is contained in:
2025-03-11 08:25:33 +01:00
parent 045c26d258
commit b386ee365f
2 changed files with 9 additions and 6 deletions

View File

@@ -55,9 +55,9 @@ export const SetPassword = () => {
if (resp.ok) {
console.log(resp);
navigate({
pathname: "/",
search: `?username=${encodeURI(username)}&password=${encodeURI(password)}`,
navigate("/", {
replace: true,
state: { username: username, password: password },
});
}