Description
The current authentication system is working as a prototype, but there are several security and configuration issues that should be addressed before treating it as production-ready.
These fixes were intentionally deferred from the current prototype PR so they can be handled separately.
Tasks
Authentication Security
🔧 Configuration & Error Handling
🧹 Additional Cleanup
Testing Checklist
After implementing the fixes:
Notes
This issue is intended as a follow-up to the prototype authentication update.
The goal is not to completely refactor the authentication system. Keep the existing structure where possible and focus on fixing the identified security, configuration, and obvious functionality issues.
Description
The current authentication system is working as a prototype, but there are several security and configuration issues that should be addressed before treating it as production-ready.
These fixes were intentionally deferred from the current prototype PR so they can be handled separately.
Tasks
Authentication Security
Regenerate session ID after login
session_regenerate_id(true)after successful authentication.Add CSRF protection
GETtoPOST.Validate Google's
email_verifiedemail_verifiedvalue to betrue.🔧 Configuration & Error Handling
Fix
config.local.phploadingconfig.local.phpoptional.Hide raw database errors
🧹 Additional Cleanup
Review
sanitize()Fix the Forgot Password link
reset-password.phpTesting Checklist
After implementing the fixes:
config.local.php.Notes
This issue is intended as a follow-up to the prototype authentication update.
The goal is not to completely refactor the authentication system. Keep the existing structure where possible and focus on fixing the identified security, configuration, and obvious functionality issues.