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 d6ef14d3..0ee73cd7 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -26,5 +26,5 @@ keywords: - web-ui - agent license: Apache-2.0 -version: 1.1.12-rc.4 -date-released: "2026-01-11" +version: 1.1.13 +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 87dee638..bb2e2dac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "portabase", - "version": "1.1.12-rc.4", + "version": "1.1.13", "private": true, "scripts": { "dev": "next dev --turbopack -p 8887", diff --git a/src/lib/email/email-helper.ts b/src/lib/email/email-helper.ts index 985d2f9a..adf34c37 100644 --- a/src/lib/email/email-helper.ts +++ b/src/lib/email/email-helper.ts @@ -41,6 +41,11 @@ export const sendEmail = async (data: Payload) => { throw new Error("SMTP system settings not found."); } + if (!settings.smtpHost || !settings.smtpPort || !settings.smtpUser || !settings.smtpPassword || !settings.smtpFrom) { + console.warn("Incomplete SMTP settings. Email not sent."); + return; + } + const emailsArray = data.to.split(",") .map(email => email.trim());