Implement comprehensive admin settings and token management system
- Restrict settings page to admin users only with @admin_required decorator - Add database configuration section to admin settings (SQLite/MySQL settings) - Create admin-only worker token generation for --client authentication - Create user-accessible API token generation for programmatic access - Implement user API token validation that consumes user tokens for analysis - Add database tables for worker_tokens and user_api_tokens - Add API endpoint /api/analyze that validates user tokens and deducts tokens - Admin users are exempt from token consumption for all operations - Enhanced settings page with database management and token generation options
Showing
Please
register
or
sign in
to comment