Skip to content

Releases: locomotivemtl/charcoal-user

charcoal-user 0.4.0

04 Mar 18:57
41d6d20
Compare
Choose a tag to compare

Key Features

  • Removed username property from User model and replaced it with email property.
  • Unique email address validation on User model

BC Breaks

⚠️ This release WILL break your database

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 from myapp_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 new id on User model
  • [Breaking] Renamed username property to user_id on AuthToken
  • [Breaking] Updated Authenticator to work with the email 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

03 Oct 17:49
Compare
Choose a tag to compare
  • Allow authentication from any key / property

charcoal-user 0.3.0

05 Jun 15:25
Compare
Choose a tag to compare

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

Added

  • AuthToken::metadataClass() method as per changes to DescribableTrait [charcoal‑core@0.4.0]

Changed

  • AuthToken::createMetadata() method to use new ::metadataClass() method [charcoal‑core@0.4.0]

charcoal-user 0.2

20 Nov 18:42
Compare
Choose a tag to compare

Highlights:

charcoal-user 0.1.6

07 Apr 14:40
Compare
Choose a tag to compare
  • Upgrade to charcoal-object 0.2

charcoal-user 0.1.5

28 Feb 15:20
Compare
Choose a tag to compare
  • Fix service provider

charcoal-user 0.1.4

24 Feb 22:47
Compare
Choose a tag to compare

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

10 Feb 19:51
Compare
Choose a tag to compare
  • Required permissions can (and most likely are) NULL.
  • Check user first, before permissions.

charcoal-user 0.1.2

09 Feb 13:34
Compare
Choose a tag to compare
  • Add AuthAwareTrait / AuthAwareInterface
  • Add name to acl roles

charcoal-user 0.1.1

08 Feb 18:18
Compare
Choose a tag to compare
  • Fix logout
  • Migrate to charcoal-translator
  • Minor fixes