Home page: logged-in users stay on it
The home page no longer sends logged-in users to their chart: they see it with the app's header, the buttons lead to their chart, and the login hints and "without login" texts are left out. The login (and setting a password) now lands on /keplet by default, which still goes on to the profile when there is no chart yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -29,7 +29,7 @@ export function SetPasswordForm({ token, minLength }: { token: string; minLength
|
||||
setBusy(true);
|
||||
try {
|
||||
await api("/auth/set-password", { body: { token, password } });
|
||||
router.replace("/");
|
||||
router.replace("/keplet");
|
||||
router.refresh();
|
||||
} catch (err) {
|
||||
if (err instanceof ApiError && err.code === "invalid_token") setExpired(true);
|
||||
|
||||
Reference in New Issue
Block a user