import type { Metadata } from 'next' import LoginForm from './LoginForm' export const metadata: Metadata = { title: 'Sign In — Backerup', } interface Props { searchParams: Promise<{ from?: string }> } export default async function LoginPage({ searchParams }: Props) { const { from = '/browse' } = await searchParams // Only allow relative paths to prevent open redirects const safePath = from.startsWith('/') && !from.startsWith('//') ? from : '/browse' return (
Sign in to your Backerup account
Access is managed by your administrator.