|
@@ -11,6 +11,8 @@
|
|
) {
|
|
) {
|
|
const authResult = await this.fetch("/login/check", { credentials: "include" });
|
|
const authResult = await this.fetch("/login/check", { credentials: "include" });
|
|
const result = (await authResult.json()) as AuthInfo;
|
|
const result = (await authResult.json()) as AuthInfo;
|
|
|
|
+ console.log(result);
|
|
|
|
+ console.log(path);
|
|
if (path.startsWith("/login/")) {
|
|
if (path.startsWith("/login/")) {
|
|
if (result.loggedIn) {
|
|
if (result.loggedIn) {
|
|
return this.redirect(302, "/");
|
|
return this.redirect(302, "/");
|