- 06 Oct, 2025 40 commits
-
-
Stefy Lanza (nextime / spora ) authored
- Added extend_remember_token() function to renew token expiration - Modified login route to extend existing valid remember tokens instead of creating new ones - Users who login with remember me checked get their token validity extended to 30 days from login - Improves UX by keeping users logged in longer if they actively use the service
-
Stefy Lanza (nextime / spora ) authored
- Renamed vidai/email.py to vidai/email_utils.py to avoid conflict with built-in email module - Updated import in payments.py - This resolves the server startup issue caused by module shadowing
-
Stefy Lanza (nextime / spora ) authored
- Modified get_persistent_session to use SQL datetime functions for expiration check - This ensures consistent time handling between database and application - Fixes potential issues with time parsing
-
Stefy Lanza (nextime / spora ) authored
- Added sessions table to database for persistent session storage - Modified SessionManager to use database instead of in-memory storage - Added database functions for session management - Remember me functionality now works across server reboots
-
Stefy Lanza (nextime / spora ) authored
- Added remember_tokens table to database - Added functions to create, validate, and delete remember tokens - Modified login route to set remember cookie when checkbox is checked - Added before_request handler to auto-login from remember cookie - Modified logout to clear remember cookie and delete token - Cookie expires in 30 days
-
Stefy Lanza (nextime / spora ) authored
- Remove the entire Quick Actions section from dashboard.html - Simplifies dashboard interface to show only stats and recent jobs - Users can still access features through navbar links
-
Stefy Lanza (nextime / spora ) authored
- Wrap Train link with admin role check in base.html - Regular users can no longer see/access the Train page from navbar - Maintains existing admin access to training functionality
-
Stefy Lanza (nextime / spora ) authored
- Change closeTokenModal() to redirect to /api_tokens instead of reload - Prevents POST resubmission when closing generated token modal - Avoids 'token name already exists' error on close
-
Stefy Lanza (nextime / spora ) authored
- Change JWT_SECRET_KEY fallback from hardcoded to get_config('jwt_secret_key') - Allows configuration through database instead of code changes - Maintains environment variable priority
-
Stefy Lanza (nextime / spora ) authored
- Update token format to 'XVDAI_' + 26-char hex random part - Total token length exactly 32 characters - Maintain JWT mapping for security
-
Stefy Lanza (nextime / spora ) authored
- Add jwt_token column to user_api_tokens table - Modify create_user_api_token to generate short tokens with JWT backend - Update validate_user_api_token to lookup and validate JWTs - Maintain JWT security while providing short, usable tokens
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
Implement API token improvements: unique names per user, 100-year expiration, modal on creation with reload
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
-
Stefy Lanza (nextime / spora ) authored
- Reduced modal-body padding from 2rem to 1rem - Reduced form-group margin-bottom from 1.5rem to 1rem - Reduced input/select padding from 0.75rem to 0.5rem - Kept modal max-height at 50vh with scrollable body
-
Stefy Lanza (nextime / spora ) authored
- Increased container max-width from 1200px to 1400px for wider user list - Reduced modal max-height from 90vh to 70vh for better fit and scrollability
-
Stefy Lanza (nextime / spora ) authored
- Added .actions-cell CSS class with display: flex and gap - Applied class to the actions table cell to arrange edit, deactivate/activate, and delete buttons horizontally
-
Stefy Lanza (nextime / spora ) authored
- Removed old admin.html and admin_users.html files - Updated api_tokens.html to extend base.html
-
Stefy Lanza (nextime / spora ) authored
- Created templates/admin/ directory - Moved admin_users.html to admin/users.html - Updated render_template path in web.py
-
Stefy Lanza (nextime / spora ) authored
- Removed conflicting display: flex from .modal CSS rule - Added .modal.show class for proper centering when opened - Updated JavaScript to use classList.add/remove instead of direct style.display
-
Stefy Lanza (nextime / spora ) authored
- Changed admin routes from /admin/user/* to /admin/users/* - Updated admin.html to extend base.html - Changed action buttons to small icon-based buttons (edit, activate/deactivate, delete) - Made edit user modal scrollable with overflow-y: auto
-
Stefy Lanza (nextime / spora ) authored
- Added base.html with header, nav, user menu, and scripts - Updated dashboard.html, analyze.html, train.html, history.html to extend base.html - Added active_page parameter to render_template calls in web.py for dynamic nav highlighting
-
Stefy Lanza (nextime / spora ) authored
- Updated route in web.py to /admin/users - Updated all dropdown links in templates to point to /admin/users - Removed remaining Admin link from account.html navbar
-
Stefy Lanza (nextime / spora ) authored
- Removed 'Account' and 'Admin' links from top navigation bar - Added 'Account' as first item in user dropdown for all users - Renamed 'Menu Management' to 'Users' in admin dropdown - Dropdown now shows Account first, then role-specific options
-
Stefy Lanza (nextime / spora ) authored
- Changed modal to use flexbox for proper centering - Added max-height and overflow-y: auto to modal-body for scrollable content - Prevented background page scrolling when modal is open - Modal now stays within viewport and scrolls internally
-
Stefy Lanza (nextime / spora ) authored
- Added user icon in top right navigation bar on all pages - Dropdown shows Account/Tokens for non-admin users - Dropdown shows Menu Management/Configurations for admin users - Includes Logout option for all - Used FontAwesome icons and consistent styling
-