fix(auth): скрыть пароли от читателя и согласовать Portal

This commit is contained in:
Denozordec committed 2026-10-13 15:35:31 +07:00
1 parent a15917d08b
commit 608f743003
20 files changed
+1412 -19

No files matched your search

+2 -1
View File
@@ -7,6 +7,7 @@ import {
type LucideIcon,
} from "lucide-react"
import { formatAppVersionLabel, getAppVersion } from "@/lib/app-version"
import {getAuthConfigSync} from "@/lib/auth"
export const CURRENT_APP_ID = "mm"
@@ -150,7 +151,7 @@ export function mergeWithLocalApp(config: AppSwitcherConfig): AppSwitcherConfig
}
export function authPortalBaseUrl(): string | null {
const raw = process.env.NEXT_PUBLIC_AUTH_PORTAL_URL?.trim()
const raw = (getAuthConfigSync()?.portalUrl || process.env.NEXT_PUBLIC_AUTH_PORTAL_URL)?.trim()
if (!raw) return null
return raw.replace(/\/$/, "")
}