Repository navigation
Releases
Releases · 68publishers/user
v0.6.0
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/orm3,symfony/event-dispatcher8,matomo/device-detector5 and 6. - Added tests of the entity mapping combined with an annotation-mapped (
doctrine/orm2) 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
PasswordRequestandDeviceInfoare mapped with PHP attributes instead of annotations and registered withEntityMapping::DRIVER_ATTRIBUTE(BC break: a mapping driver service of the typeDoctrine\ORM\Mapping\Driver\AttributeDriveris 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.0and68publishers/translation-bridge^3.0(BC break). - Minimal versions are
nette/security3.1.8,nette/application3.1,nette/di3.1.3 andnette/utils3.2.10. - The authenticator service is registered with the type
Nette\Security\Authenticatorinstead of the deprecatedNette\Security\IAuthenticator. It is now also autowired forNette\Security\Authenticator. DeviceInfo::fill()creates a new device detector on every call (a static detector kept the User-Agent of the first call).PasswordRequest::$updatedis set in UTC on update (like on creation).- Replaced deprecated
IAuthenticatorconstants,Strings::contains()andPhpLiteralwithAuthenticator::Failure(etc.),str_contains()andLiteral. - Migrated PHP-CS-Fixer to v3 (
.php-cs-fixer.dist.php) and applied it, updatednette/testerto^2.6,roave/security-advisoriestodev-latest,contributte/mailing(dev) to^0.5 || ^0.6 || ^0.7andpsr/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 aTypeErrorwith thePasswordvalue object, passwords are hashed by thePasswordvalue object and thePasswordType. - Removed Travis CI and Scrutinizer configurations.
Fixed
DeviceInfo::fill()no longer fails without theUser-Agentheader or the remote address (e.g. in CLI), and only the first (client) address ofX-Forwarded-Foris stored.CancelPasswordRequestPresenterTraitusesgetAction()instead of the deprecated property$action(deprecation withnette/application3.2).- Removed the import of the non-existent class
DoctrineIdentityExtensioninUserBundleExtension. - PHP 8.4 deprecation of the implicitly nullable parameter
$previousinPasswordRequestProcessException::__construct().
v0.5.2
v0.5.1
v0.5.0
v0.4.1
v0.4.0
v0.3.0
v0.2.4
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
v0.2.2
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`