🔒 Security: SHA-256 Hash Upgrade & PHP 8.5#32
Merged
k2so-dev merged 3 commits intok2so-dev:mainfrom Dec 28, 2025
Merged
Conversation
- Updated AuthController::verifyEmail to use SHA-256 hash validation - Updated VerifyEmail::createUrlUsing in AppServiceProvider to generate SHA-256 hashes - Updated EmailVerificationTest to use SHA-256 for test assertions - Configured phpunit.xml to use in-memory SQLite for testing SHA-256 provides better cryptographic security compared to deprecated SHA-1 algorithm.
- Replaced PDO::MYSQL_ATTR_SSL_CA with PDO\MySQL::ATTR_SSL_CA - Updated both mysql and mariadb database configurations - Eliminates deprecated warnings in PHP 8.5
- Removed unnecessary test setup modifications - Reverted phpunit.xml error_reporting changes - Tests pass successfully with file_get_contents warnings (non-critical) - All security improvements remain intact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔒 Security & Compatibility Improvements
This PR addresses critical security vulnerabilities and PHP 8.5 compatibility issues:
Security Improvements 🔐
PHP 8.5 Compatibility 🛠️
PDO::MYSQL_ATTR_SSL_CA→PDO\MySQL::ATTR_SSL_CAChanges Made
app/Http/Controllers/AuthController.php- SHA-256 hash validationapp/Providers/AppServiceProvider.php- SHA-256 hash generationtests/Feature/Auth/EmailVerificationTest.php- Updated test assertionsconfig/database.php- Updated PDO constantsphpunit.xml- In-memory SQLite configuration for testingTesting ✅
Priority: High - Addresses security vulnerabilities and compatibility issues