SecuritySettings
Comprehensive admin component for managing tenant security policies including lockout rules, sign-up restrictions, and attack protection.
Live Demo
Demo Mode: This component requires authentication and database connection. The actual component provides comprehensive security configuration.
Security Configuration Preview
Account Lockout
Lock accounts after failed login attempts
Bot Protection
Protect against automated attacks
Email Verification
Require email verification for new accounts
Session Management
Configure session timeout and limits
Account Lockout Policy
Lock accounts after failed login attempts
Sign-up Mode
Attack Protection
Bot Protection
Require CAPTCHA verification
User Enumeration Protection
Hide whether accounts exist
Block Disposable Emails
Prevent temporary email services
Block Email Subaddressing
Prevent email+tag addresses
Installation
Basic Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tenantId | string | - | Required. The tenant ID to manage security settings for |
| apiEndpoint | string | '/api' | Base URL for API calls |
| onUpdate | (settings: SecuritySettings) => void | - | Callback fired when settings are successfully updated |
| className | string | - | Additional CSS classes for the container |
Direct API Usage
You can also manage security settings directly via the API:
Middleware Integration
Security settings automatically integrate with authentication middleware: