Skip to content

Releases

v0.6.0

Choose a tag to compare

@tg666 tg666 released this 28 Oct 17:25
4b18045

Added

  • Added Nette Tester tests (DI container with a typical application configuration, DeviceInfo, CancelPasswordRequestPresenterTrait, AuthenticatorMount, PasswordHasBeenResetEmail) and GitHub Actions (coding style, tests on PHP 8.3, 8.4 and 8.5 with highest dependencies and on PHP 8.3 with lowest dependencies) and a docker dev environment with PHP 8.3, 8.4 and 8.5.
  • Added support for doctrine/orm 3, symfony/event-dispatcher 8, matomo/device-detector 5 and 6.
  • Added tests of the entity mapping combined with an annotation-mapped (doctrine/orm 2) or attribute-mapped application user entity.
  • Declared the directly used dependency doctrine/orm (^2.10 || ^3.0).

Changed

  • Minimal PHP version is 8.3 (BC break).
  • The entities PasswordRequest and DeviceInfo are mapped with PHP attributes instead of annotations and registered with EntityMapping::DRIVER_ATTRIBUTE (BC break: a mapping driver service of the type Doctrine\ORM\Mapping\Driver\AttributeDriver is required in the container). The database schema is unchanged.
  • Requires 68publishers/doctrine-bridge ^2.0, 68publishers/doctrine-persistence ^0.4, 68publishers/doctrine-query-objects ^0.3, 68publishers/smart-nette-component ^2.0 and 68publishers/translation-bridge ^3.0 (BC break).
  • Minimal versions are nette/security 3.1.8, nette/application 3.1, nette/di 3.1.3 and nette/utils 3.2.10.
  • The authenticator service is registered with the type Nette\Security\Authenticator instead of the deprecated Nette\Security\IAuthenticator. It is now also autowired for Nette\Security\Authenticator.
  • DeviceInfo::fill() creates a new device detector on every call (a static detector kept the User-Agent of the first call).
  • PasswordRequest::$updated is set in UTC on update (like on creation).
  • Replaced deprecated IAuthenticator constants, Strings::contains() and PhpLiteral with Authenticator::Failure (etc.), str_contains() and Literal.
  • Migrated PHP-CS-Fixer to v3 (.php-cs-fixer.dist.php) and applied it, updated nette/tester to ^2.6, roave/security-advisories to dev-latest, contributte/mailing (dev) to ^0.5 || ^0.6 || ^0.7 and psr/log (dev) to ^1.0 || ^2.0 || ^3.0.

Removed

  • Removed the class SixtyEightPublishers\User\Common\EventSubscriber\HashUserPasswordSubscriber (BC break). It was never registered by the bundle and caused a TypeError with the Password value object, passwords are hashed by the Password value object and the PasswordType.
  • Removed Travis CI and Scrutinizer configurations.

Fixed

  • DeviceInfo::fill() no longer fails without the User-Agent header or the remote address (e.g. in CLI), and only the first (client) address of X-Forwarded-For is stored.
  • CancelPasswordRequestPresenterTrait uses getAction() instead of the deprecated property $action (deprecation with nette/application 3.2).
  • Removed the import of the non-existent class DoctrineIdentityExtension in UserBundleExtension.
  • PHP 8.4 deprecation of the implicitly nullable parameter $previous in PasswordRequestProcessException::__construct().

v0.5.2

Choose a tag to compare

@tg666 tg666 released this 06 Aug 01:50
Renamed argument `user` to `userEntity` in `PasswordHasBeenResetEmail…

v0.5.1

Choose a tag to compare

@tg666 tg666 released this 06 Aug 00:58
Allowed `nette/utils` v4 and `symfony/event-dispatcher` v7

v0.5.0

Choose a tag to compare

@tg666 tg666 released this 06 Jan 03:24
nette/security 3.16

- removed the whole `DoctrineIdentity` namespace
- added `IdentityHandler` in `Authentication` namespace

v0.4.1

Choose a tag to compare

@tg666 tg666 released this 06 Jan 00:44
Fixed password verifying in the Authenticator

v0.4.0

Choose a tag to compare

@tg666 tg666 released this 06 Jan 00:38
Value of Password ValueObject cannot be null

v0.3.0

Choose a tag to compare

@tg666 tg666 released this 03 Jan 23:58
Added PHP `8.1` into `composer.json` and support warning into the README

v0.2.4

Choose a tag to compare

@tg666 tg666 released this 25 Jan 03:55
Optional sending emails about forgot password for non registered used

- added the option `forgot_password.send_email_for_not_registered_users`
- the exception `PasswordRequestCreationException` is thrown if the option is disabled and a user is not registered

v0.2.3

Choose a tag to compare

@tg666 tg666 released this 21 Jan 02:40
Fixed option `doctrine_identity.namespace`

v0.2.2

Choose a tag to compare

@tg666 tg666 released this 04 Nov 23:57
Forgot password: don't log error if a user is not registered

- updated package `68publishers/doctrine-persistence`
- added Transaction badge `NonLoggableErrorBadge` when an user is not registered and an exception `PasswordRequestCreationException` thrown in `PasswordRequestFactory`