diff --git a/.gitignore b/.gitignore index 81dc4612..67e803ba 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,5 @@ public/uploads/* private/uploads/* /.env + +certificates \ No newline at end of file diff --git a/CITATION.cff b/CITATION.cff index 3a605eb8..45e76550 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -26,5 +26,5 @@ keywords: - web-ui - agent license: Apache-2.0 -version: 1.1.12 -date-released: "2026-01-11" +version: 1.1.13-rc.1 +date-released: "2026-01-16" diff --git a/app/(auth)/guard/page.tsx b/app/(auth)/guard/page.tsx index d0bbb103..72f8ae38 100644 --- a/app/(auth)/guard/page.tsx +++ b/app/(auth)/guard/page.tsx @@ -8,8 +8,8 @@ import {CardAuth} from "@/features/layout/card-auth"; export default async function GuardPage() { const cookieStore = await cookies(); - const token = cookieStore.get("better-auth.two_factor")?.value; - + const token = cookieStore.get("better-auth.two_factor")?.value || cookieStore.get("__Secure-better-auth.two_factor")?.value; + if (!token) { redirect("/login"); } diff --git a/package.json b/package.json index 70b0a251..4735e508 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "portabase", - "version": "1.1.12", + "version": "1.1.13-rc.1", "private": true, "scripts": { "dev": "next dev --turbopack -p 8887",