Commit Graph

5 Commits

Author SHA1 Message Date
Quality App Developer
07614cf0bb Fix: Resolve newly created users unable to login - Add modules column support to user creation and login flow
Changes:
1. Fixed create_user_handler to properly initialize modules JSON for new users
2. Fixed edit_user_handler to manage module assignments instead of non-existent email field
3. Updated settings_handler to select modules column instead of email from users table
4. Added validate_and_repair_user_modules function in setup_complete_database.py to ensure all users have correct module assignments
5. Added create_app_license function to create development license file during database setup
6. Added ensure_app_license function to docker-entrypoint.sh for license creation on container startup
7. Added user modules validation on Flask app startup to repair any malformed modules
8. License file is automatically created with 1-year validity on deployment

This ensures:
- New users created via UI get proper module assignments
- Existing users are validated/repaired on app startup
- Non-superadmin users can login after license check passes
- All deployments have a valid development license by default
2026-01-09 13:45:08 +02:00
Quality App Developer
d09bf34e85 Fix superadmin access control and modal aria-hidden warning
- Implement role normalization system to handle role name variants (superadmin, super_admin, administrator)
- Add session persistence configuration (PERMANENT_SESSION_LIFETIME = 7 days)
- Add modules JSON column to users database table schema
- Update setup script with backward compatibility check for modules column
- Fix user_management_simple route to properly fetch and display modules
- Resolve modal aria-hidden accessibility warning by managing focus on close button
- All changes deployed and tested successfully
2025-12-26 20:08:54 +02:00
Quality App Developer
a8824d6f69 updated code 2025-12-25 22:45:22 +02:00
Quality System Admin
8d47e6e82d updated structure and app 2025-11-03 19:48:53 +02:00
Quality System Admin
c292854d72 updated docker compose files 2025-10-13 21:18:33 +03:00