Releases: locomotivemtl/charcoal-user
Releases · locomotivemtl/charcoal-user
charcoal-user 0.4.0
Key Features
- Removed
username
property from User model and replaced it withemail
property. - Unique email address validation on User model
BC Breaks
Recommended steps to avoid issues:
- Run the alter table script on affected models:
php vendor/bin/charcoal admin/object/table/alter --obj-type=myapp/user php vendor/bin/charcoal admin/object/table/alter --obj-type=myapp/auth-token
- Remove the
username
column frommyapp_users
&myapp_auth_tokens
tables - Manually generate new IDs for your existing users and insert them into your database,
or run the following SQL query:UPDATE `myapp_users` SET `id` = (SELECT UUID());
What's new in 0.4.0?
Complete commits list: 0.3.2...0.4.0
(#1 @dominiclord)
Added
- Property
id
to User model - Property
display_name
to User model - Validation on User model, checking for non-uniqueness of the given email address
Changed
- [Breaking] Replaced primary key
username
with newid
on User model - [Breaking] Renamed
username
property touser_id
onAuthToken
- [Breaking] Updated
Authenticator
to work with theemail
property - [Breaking] Updated all user related unit tests
Removed
- [Breaking] Removed
username
property from User model
Fixed
- Various warnings and errors reported by PHPCS
charcoal-user 0.3.2
- Allow authentication from any key / property
charcoal-user 0.3.0
Key Features
Upgraded to locomotivemtl/charcoal-core v0.4.x:
New Metadata Loader and Metadata Config classes
What's new in 0.3.0?
Dependencies
- locomotivemtl/charcoal-core v0.4.x
- locomotivemtl/charcoal-config v0.9.x
- locomotivemtl/charcoal-object v0.6.x
Added
AuthToken::metadataClass()
method as per changes toDescribableTrait
[charcoal‑core@0.4.0]
Changed
AuthToken::createMetadata()
method to use new::metadataClass()
method [charcoal‑core@0.4.0]
charcoal-user 0.2
Highlights:
- Updated for locomotivemtl/charcoal-core:0.3
- Various fixes to source and tests
charcoal-user 0.1.6
- Upgrade to charcoal-object 0.2
charcoal-user 0.1.5
- Fix service provider
charcoal-user 0.1.4
Highlights:
- Require ‘zendframework/zend-permissions-acl’ for production
- Require ‘tedivm/stash’ for development
- Removed references to “admin”
- Refactored unit tests (partially reverts a2cca8e)
- Added generic AuthServiceProvider
charcoal-user 0.1.3
- Required permissions can (and most likely are) NULL.
- Check user first, before permissions.
charcoal-user 0.1.2
- Add AuthAwareTrait / AuthAwareInterface
- Add name to acl roles
charcoal-user 0.1.1
- Fix logout
- Migrate to charcoal-translator
- Minor fixes