feat(auth): harden session management and security
- Implement server-side session revocation on logout - Add IP extraction utility and admin setup error handling - Improve error codes and response consistency for auth endpoints - Refine landing page redirect logic to handle transient DB outages - Update deployment documentation and configuration defaults
This commit is contained in:
1 parent
935f12a1e9
commit
89e4d68690
81 files changed
+11530
-6916
No files matched your search
@@ -16,15 +16,19 @@ function safeNextPath() {
|
||||
|
||||
export function AdminLogin({
|
||||
showDemoHint = false,
|
||||
databaseReady = true,
|
||||
}: {
|
||||
showDemoHint?: boolean;
|
||||
databaseReady?: boolean;
|
||||
}) {
|
||||
const [email, setEmail] = useState('');
|
||||
const [password, setPassword] = useState('');
|
||||
const [remember, setRemember] = useState(true);
|
||||
const [showPassword, setShowPassword] = useState(false);
|
||||
const [isSubmitting, setIsSubmitting] = useState(false);
|
||||
const [errorMessage, setErrorMessage] = useState('');
|
||||
const [errorMessage, setErrorMessage] = useState(
|
||||
databaseReady ? '' : 'Database connection unavailable. Retry once PostgreSQL recovers.',
|
||||
);
|
||||
const [theme, setTheme] = useState<'dark' | 'light'>('dark');
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in new issue
Block a user