mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 04:18:16 +03:00
Merge pull request #48 from TNG-dev/hotfix-settings401
This commit is contained in:
@@ -32,7 +32,7 @@ export default function ResetPasswordPage() {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ code, password }),
|
||||
body: JSON.stringify({ code, "!password": password }),
|
||||
},
|
||||
true,
|
||||
true
|
||||
|
||||
@@ -134,7 +134,7 @@ export default function ImportRoutes() {
|
||||
</Route>
|
||||
<Route exact path="/dashboard/import/sdvx-min">
|
||||
<KAIIntegrationPage
|
||||
hash="5885d4123b6db3f0127111a587ea6549f533a1*78dc2e198d31f98bed4ffd0cad"
|
||||
hash="5885d4123b6db3f0127111a587ea6549f533a178dc2e198d31f98bed4ffd0cad"
|
||||
clientID={process.env.REACT_APP_MIN_CLIENT_ID ?? ""}
|
||||
redirectUri={`${window.location.origin}/oauth2-callback/min`}
|
||||
kaiType="MIN"
|
||||
|
||||
@@ -257,9 +257,11 @@ function UserGamePlaytypeRoutes({ reqUser, game }: { reqUser: PublicUserDocument
|
||||
<Route exact path="/dashboard/users/:userID/games/:game/:playtype/leaderboard">
|
||||
<LeaderboardsPage reqUser={reqUser} game={game} playtype={playtype} />
|
||||
</Route>
|
||||
<Route exact path="/dashboard/users/:userID/games/:game/:playtype/settings">
|
||||
<UGPTSettingsPage reqUser={reqUser} game={game} playtype={playtype} />
|
||||
</Route>
|
||||
<RequireAuthAsUserParam>
|
||||
<Route exact path="/dashboard/users/:userID/games/:game/:playtype/settings">
|
||||
<UGPTSettingsPage reqUser={reqUser} game={game} playtype={playtype} />
|
||||
</Route>
|
||||
</RequireAuthAsUserParam>
|
||||
<Route path="*">
|
||||
<ErrorPage statusCode={404} />
|
||||
</Route>
|
||||
|
||||
@@ -191,9 +191,9 @@ export function Sleep(ms: number) {
|
||||
}
|
||||
|
||||
export function HistorySafeGoBack(history: ReturnType<typeof useHistory>) {
|
||||
if (history.length === 1) {
|
||||
history.replace("/");
|
||||
} else {
|
||||
history.goBack();
|
||||
}
|
||||
// if (history.length === 1) {
|
||||
history.replace("/");
|
||||
// } else {
|
||||
// history.goBack();
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user