'use client'; import * as Icons from '../Icons'; import ToggleCard from '../fields/ToggleCard'; import PasswordField from '../fields/PasswordField'; import EnvLockNote from '../fields/EnvLockNote'; import { resolveWatermarkOpacity } from '@/lib/config/schema'; import type { SectionProps } from './types'; export default function SecuritySection({ settings, update, envLocks }: SectionProps) { const passwordLock = envLocks?.sitePassword; return (
Puts the whole public site behind one password — useful while a portfolio is still being built, or for a folio only ever shown to clients.
Stored as a scrypt:… hash in settings.yaml, never as typed.
{!passwordLock && (
<>
{' '}
The SITE_PASSWORD environment variable overrides this field.
>
)}{' '}
The admin panel keeps its own password and is never behind this gate.
Configure image protection rules, right-click prevention, and watermark overlay.
Overlay copyright branding text on Lightbox images.