v1.0.1 - Security Hardening & Code Quality
What's Changed
π Security
- Debug mode now controlled via
.envβ defaults to production-safefalse - Session cookies hardened β
secureandsameSiteconfigurable via.env - Login rate limiting β max 5 failed attempts per IP per 15 minutes
- Database credentials moved to
.envβ no hardcoded values inconfig/db.php
π Code Quality
- PHP 8.1 type declarations added across all models, components, widgets and controllers
- PHPDoc class-level and method-level comments added throughout (Yii2 standards)
- Fixed
BalanceHelper::getBalance()float cast for users with no transactions - Fixed
ExpenseSearch/SignupForm/ChangePasswordFormβ missingrules(): arraywas causing 500 error - Cleaned up Gii-generated noise from
Usermodel annotations
π Docs
- README updated with
.envsetup instructions - Changelog section added
.env.exampletemplate added for self-hosted deployments
Upgrade Notes
If upgrading from v1.0.0:
- Copy
.env.exampleto.envand fill in your database credentials - Run
php yii migrate(no new migrations in this release)