All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
5.14.0 - 2024-10-18
- [#1669] Add support for Symfony 7. (@jordisala1991)
5.13.0 - 2024-08-26
- [#1689] Symfony 7.1 deprecation about
Symfony\Component\HttpKernel\DependencyInjection\Extension
usage (@VincentLanglet)
- [#1695] After requesting new passwort the username isn't passed to CheckEmailAction anymode (@VincentLanglet)
5.12.0 - 2024-04-18
5.11.0 - 2024-03-08
5.10.0 - 2023-07-22
- [#1651] Deprecation of Event Subscribers on Symfony 6.3. The UserListener now uses Event Listeners (@Hanmac)
5.9.0 - 2023-06-03
- [#1646] Support for SonataBlockBundle 5.0 (@jordisala1991)
5.8.0 - 2023-05-13
- [#1643] Support for
sonata-project/form-extensions
2.0 (@jordisala1991)
5.7.0 - 2023-04-24
- [#1632] Support for Symfony 4.4 (@jordisala1991)
- [#1632] Support for Twig 2 (@jordisala1991)
5.6.3 - 2023-04-12
- [#1628] ORM schema mapping does not give errors about validation root (@jordisala1991)
- [#1626] Validation for unique
username
andemail
is applied tousernameCanonical
andemailCanonical
fields (@jordisala1991) - [#1626] Validation for MongoDB persistence (@jordisala1991)
- [#1627] Avoid deprecation on the check for is impersonator granted on Symfony >= 5.4 (@jordisala1991)
5.6.2 - 2023-04-03
- [#1624] XML validation of MongoDB ODM mapping. (@landure)
- [#1620] Generate the profile link only if the logged user has access to it (edit or show permissions) (@jordisala1991)
- [#1621] Ensure password is updated when it is the only field edited (@jordisala1991)
- [#1621] Register doctrine event subscribers both for ORM and ODM (@jordisala1991)
5.6.1 - 2023-03-30
- [#1615] Fix xml validation of MongoDB ODM mapping. (@jordisala1991)
- [#1615] Avoid deprecation for enabled boolean field on MongoDB ODM. (@jordisala1991)
- [#1616] Fix always show edit button on user admin list page. (@jordisala1991)
5.6.0 - 2023-03-22
- [#1606] Support for
doctrine/persistence
2.x (@jordisala1991) - [#1596] Support for PHP 7.4 (@SonataCI)
- [#1596] Support for Symfony 6.0 and 6.1 (@SonataCI)
5.5.0 - 2023-02-06
- [#1587] RolesBuilder: add attributes "admin_code", "group_label", "group_code". (@piddubnij)
- [#1587] Fix RolesBuilder attribute "admin_label" set admin translation domain (@piddubnij)
- [#1587] Fix roles matrix attribute "admin_label" can repeat not even in different groups but also in the same group (@piddubnij)
- [#1577] Sonata-admin 4.20 deprecation (@VincentLanglet)
5.4.0 - 2022-10-09
- [#1567] Add UniqueEntity constraint to username field in order to prevent UniqueConstraintViolationException exception. (@m-ar-c)
5.3.3 - 2022-08-13
- [#1560] Add support for
sonata-project/doctrine-extensions
^2.0. (@jordisala1991) - [#1560] Add support for
sonata-project/twig-extensions
^2.0. (@jordisala1991)
- [#1562] Add UniqueEntity constraint to email field in order to prevent UniqueConstraintViolationException exception. (@m-ar-c)
5.3.2 - 2022-07-27
- [#1556]
User::getUsername
return the real value in database (and can return null). (@VincentLanglet)
5.3.1 - 2022-07-20
- [#1553] Fix user edit page to check for a form attribute before rendering the role matrix. (@wluijt-endertech)
5.3.0 - 2022-07-12
5.2.0 - 2022-06-25
- [#1543] Add compatibility with
doctrine/persistence
^3.0. (@jordisala1991)
- [#1543] Avoid deprecations with lazy commands on Symfony 6.1. (@jordisala1991)
- [#1541] Support of Symfony 5.3 (@franmomu)
5.1.0 - 2022-04-29
- [#1533] Changed UserAdmin classnameLabel. This affects the breadcrumb translation generation. With this change Sonata will always pick the SonataUserBundle breadcrumbs translations by default. (@aerrasti)
5.0.0 - 2022-03-13
- [#1517] Added validation translation to fix untranslated content. (@jordisala1991)
- [#1515] Fixed remember me checkbox padding on login page. (@jordisala1991)
5.0.0-rc-1 - 2022-03-01
- [#1495] Added support for
symfony/translation-contracts
^3.0. (@jordisala1991)
- [#1503] SonataAdminBundle dependency is now optional. Trying to access
sonata_user.userAdmin
variable in Twig templates will throw a\LogicException
if SonataAdminBundle is not installed. (@supersmile2009)
- [#1508] Fixed show translations on User admin (@jordisala1991)
- [#1500] Simplified User admin to show all fields in a single page. (@jordisala1991)
- [#1500] Fixed User admin translation for group fields. (@jordisala1991)
- [#1500] Removed
SecurityRolesType
to render roles on the User edit form. (@jordisala1991)
5.0.0-alpha-1 - 2022-02-05
- [#1489] Added
ResetPasswordRequestFormType
form type. (@jordisala1991) - [#1484] Added
sonata:user:create
command from FOSUserBundle (@jordisala1991) - [#1484] Added
sonata:user:promote
command from FOSUserBundle (@jordisala1991) - [#1484] Added
sonata:user:demote
command from FOSUserBundle (@jordisala1991) - [#1484] Added
sonata:user:change-password
command from FOSUserBundle (@jordisala1991) - [#1484] Added
sonata:user:activate
command from FOSUserBundle (@jordisala1991) - [#1484] Added
sonata:user:deactivate
command from FOSUserBundle (@jordisala1991) - [#1479] Added
EditableRolesBuilderInterface
. (@jordisala1991) - [#1454] Added support for Symfony 5. (@jordisala1991)
- [#1454] Added support for Symfony 6. (@jordisala1991)
- [#1444] Added support for Sonata 4. (@jordisala1991)
- [#1479] Changed
__construct()
ofEditableRolesBuilder
to provideTranslatorInterface
(@jordisala1991)
- [#1485] Fixed icons usage for Font Awesome 5. (@jordisala1991)
- [#1481] Improve bundle configuration for default and required parameters. (@jordisala1991)
- [#1490] Removed usage of container parameters for most of the bundle configuration. (@jordisala1991)
- [#1468] Removed user groups feature. (@jordisala1991)
- [#1463] Removed support for PHP 7.3 (@jordisala1991)
- [#1462] Removed social and profile fields from User. (@jordisala1991)
- [#1449] Removed FOSUserBundle dependency. (@jordisala1991)
4.15.0 - 2022-01-08
- [#1471] Deprecated extending most of the classes of this bundle. (@jordisala1991)
- [#1476]
User::__serialize()
andUser::__unserialize()
methods (@VincentLanglet)
4.14.0 - 2021-12-28
- [#1446] Deprecated the integration with
sonata-project/GoogleAuthenticator
(@jordisala1991) - [#1439] Deprecated ReST API with FOSRest, Nelmio Api Docs and JMS Serializer. (@jordisala1991)
- [#1430] Taking into account sonata_admin.options.logo_content configuration value (@AntoineRoue)
4.13.0 - 2021-11-04
4.12.0 - 2021-09-08
- [#1396] Added support for PHP 8.0 (@jordisala1991)
- [#1396] Added support for Twig 3 (@jordisala1991)
- [#1396] Added support for Symfony
http-foundation
5.3 (@jordisala1991)
- [#1396] Removed support for Symfony 5.1 and 5.2 (@jordisala1991)
4.11.1 - 2021-03-03
- [#1332] Fix compatibility with doctrine/persistence 2.0 (@jordisala1991)
4.11.0 - 2021-02-15
4.10.2 - 2021-02-05
- [#1323]
GroupManager::getPager()
return type isSonata\DatagridBundle\Pager\PagerInterface
. (@Jean-ita) - [#1323]
UserManager::getPager()
return type isSonata\DatagridBundle\Pager\PagerInterface
. (@Jean-ita)
4.10.1 - 2020-11-24
4.10.0 - 2020-11-24
- [#1266] Fixed the problem of the message "sonata_user_already_authenticated" not being translated (@BitScout)
4.9.0 - 2020-10-26
- [#1225] Support for
nelmio/api-doc-bundle
>= 3.6 (@wbloszyk) - [#1230] Support for sonata-project/datagrid-bundle to version ^3.0 (@wbloszyk)
- [#1247] Fixed Asserts validation for Default group. (@eerison)
- [#1254] Deprecation about the extension of
AbstractAdmin::getExportFields()
method inUserAdmin
. (@phansys) - [#1235] API routing paths after move routing type from 'REST' to 'XML' in v4.6.0 (@wbloszyk)
- [#1212] Removed sonata.templating argument from google_authenticator.xml (@Jean-ita)
4.8.0 - 2020-09-07
- [#1205] Replace
ip_white_list
bytrusted_ip_list
configuration key (@davidromani)
- [#1198] Removed requirements that were only allowing integers for model identifiers at Open API definitions (@phansys)
4.7.0 - 2020-07-30
- [#1183] SonataEasyExtendsBundle is now optional, using SonataDoctrineBundle is preferred (@jordisala1991)
- [#1183] Using SonataEasyExtendsBundle to add Doctrine mapping information (@jordisala1991)
- [#1202] Fixed
wrong placeholder delimiters at ReST API controller
UserController
. (@phansys) - [#1195] Fixed passing "format' parameter to API routes. (@phansys)
- [#1194] Fixed API route names. (@phansys)
4.6.0 - 2020-06-29
- [#1185] Added support for "friendsofsymfony/rest-bundle:^3.0"; (@phansys)
- [#1185] Added
public alias
Sonata\UserBundle\Controller\Api\UserController
forsonata.user.controller.api.user
service; (@phansys) - [#1185] Added
public alias
Sonata\UserBundle\Controller\Api\GroupController
forsonata.user.controller.api.group
service. (@phansys)
- [#1180] Fixed display errors in reset template (@clementlefrancois)
- [#1175] Fixed a bug with ResetAction relying on concrete Session implementation (@oleg-andreyev)
- [#1185]
Removed support for
symfony/*
:<4.4; (@phansys) - [#1185] Removed support for deprecated "rest" routing type. (@phansys)
- [#1173] Remove SonataCoreBundle dependencies (@wbloszyk)
4.5.3 - 2020-05-07
- czech translations
- Fixed retrieving all forwarded ip headers in the google authenticator helper
- Avoid leaking usernames in password recovery
4.5.2 - 2020-02-04
- some deprecations form the core bundle
- Doctrine MongoDB mapping
4.5.1 - 2019-10-21
- Add missing translation for admin menu
- Fixed invocation of non-existent "getLogger" method. Changed to access property.
4.5.0 - 2019-09-27
- Missing Spanish translations.
- Replaced usages of deprecated "templating" service with "twig" where possible.
- Dependency conflict against "jms/serializer:^3.0".
- Add missing dependency against "twig/twig"
- Changed usages of
{% spaceless %}
tag, which is deprecated as of Twig 1.38 with{% apply spaceless %}
filter
4.4.0 - 2019-06-13
- Added compatibility with jms/serializer-bundle:^3.0 and jms/serializer:^2.0
- Added missing google auth french translation
- Fixed a bug with inability to use external model classes
- Fixed wrong google auth user manager argument when not using autowiring
- Fixed hard coded google auth redirection url
- Updated
_controller
attribute for routes which were using deprecated syntax.
4.3.0 - 2019-01-30
- exception when calling
sonata:user:two-step-verification
even with proper configuration - deprecation for symfony/config 4.2+
- case when user was not found in sendEmailAction
- rendering resetting email on Windows
- executing a
Sonata\UserBundle\Command\TwoStepVerificationCommand
that did not receive arguments.
4.2.3 - 2018-07-08
Replace deprecated use of Google\Authenticator\GoogleAuthenticator by Sonata's namespace
4.2.2 - 2018-06-09
- The following services can be get via the container again:
sonata.user.user_manager
sonata.user.group_manager
Sonata\UserBundle\Form\Type\RolesMatrixType
Sonata\UserBundle\Entity\UserManagerProxy
4.2.1 - 2018-05-15
- Load
Sonata\UserBundle\Twig\RolesMatrixExtension
only if UserBundle is used - Make
Sonata\UserBundle\Form\Type\SecurityRolesType
public, as it is lazy loaded - Move static
Entity\BaseUser::getGenderList
toModel\User
so that it is available to all persistence systems
4.2.0 - 2018-05-08
- Role permissions can now be displayed in a matrix view using the
Sonata\UserBundle\Form\Type\RolesMatrixType
- Missing french translations were added
- Commands now work on Symfony 4
- Removed compatibility with older versions of FOSRestBundle (<2.1)
4.1.1 - 2018-02-08
- Switch all templates references to Twig namespaced syntax
- Switch from templating service to sonata.templating
- choices for User gender now appears correctly flipped and translated
- Deprecation message on SecurityRolesType about
choices_as_values
4.1.0 - 2018-01-20
- New experience for
sonata-project/google-authenticator
users. Showing QR-code in login form, automatically setting 2FA secret to user. - use forcedRoles and ipWhiteList also on InteractiveLoginListener
- use
symfony/security-core
andsymfony/security-acl
instead ofsymfony/security
- Avoid templates path colon notation
- Bad conflict rule for nelmio/api-doc-bundle
4.0.1 - 2017-12-20
- Fixed flipped choices values/labels in SecurityRolesType when using symfony 2.8
- Admin pool variable in admin resetting templates
4.0.0 - 2017-12-04
- Add support for FOSUser 2.0
- Added missing
swiftmailer
dependency
- Risky code change for PHP 7
- Made
sonata-project/google-authenticator
an optional dependency - Moved public methods of
User
toUserInterface
- Lowered upper composer dependencies
- default values moved to the Configuration class
sonata.user.admin.user
andsonata.user.admin.group
are public now
- Fixed PHPDoc
- Fixed wrong parent calls in UserManager
- Fixed wrong router call in Controller
- missing logo in templates
- Removed removed user model properties
- Removed deprecated code
3.6.0 - 2017-12-04
- make Roles in SecurityRolesType translateable
- Added Russian translations
- Changed internal folder structure to
src
,tests
anddocs
- Added a check to the UserAclVoter class to ensure the subject is an object
3.5.0 - 2017-11-04
- Rollback to PHP 5.6 as minimum support.
3.4.0 - 2017-10-22
- Fixed the twig configuration setting bug.
- Support for old versions of php and Symfony.
3.3.0 - 2017-10-22
- Use sonata admin pool the get the master role name
AccountBlockService
extendsAbstractAdminBlockService
instead of wrongAbstractBlockService
- missing spanish translations were added
3.2.4 - 2017-06-14
- Added Dutch translation for
title_user_authentication
- Google Authenticator 2 is now allowed
- Deprecated block service usage
- Compatibility with Twig 2.0 was improved
- Fixed hardcoded paths to classes in
.xml.skeleton
files of config
3.2.3 - 2017-03-16
- Fix non-use of container for has/get services.
3.2.2 - 2017-03-08
- Fixed empty route after registration
- Added missing throw in change password process
- Avoid deprecation message by using request_stack when it is present
- Avoid deprecation message by changing CSRF token generation when possible
- Wrong factory definition
- Removed form types non FQCN on SF2.8+
- Removed deprecations about form factory on SF2.8
3.2.1 - 2017-02-09
- Add missing (optional) dependency for JMSSerializerBundle, needed for the services defined in serializer.xml and api_form.xml
- FOSRestBundle 2.x was improved
- fixed a cross dependency when using UserBundle with FOSRestBundle and NelmioApiDocBundle depending JMSSerializerBundle.
- add missing use for DependencyInjection\Reference
- Added $ sign that was missing from a previous refactoring
asset
return/
if default avatar is empty- Declaration of
UserManagerProxy
usesSonata\UserBundle\Entity\User
instead of%fos_user.model.user.class%
- the bundle can be used without a
sonata.user.editable_role_builder
service - Issue where service was injected to constructor at wrong position
- Missing italian translations
- Deprecation of
security.context
onAdminSecurityController
3.2.0 - 2016-11-25
- Added russian and ukrainian translations
- Relying on the
sonata_basket_delivery_redirect
is deprecated and won't be supported anymore
- The reset password url now points to the action dedicated to administrators again
- The conflict rule for FOSRestBundle
>=2.0
3.1.0 - 2016-10-14
- The
friendsofsymfony/rest-bundle
dependency is optional again - The
jms/serializer-bundle
dependency is optional again - The
nelmio/api-doc-bundle
dependency is optional again - Changed implementation of
SecurityFOSUser1Controller::loginAction
- Changed implementation of
AdminSecurityController::loginAction
- Changed how the error message is translated in
login.html.twig
- Changed how the error message is translated in
base_login.html.twig
- Fixed a potential null error in
SecurityFOSUser1Controller::loginAction
- Fixed a potential empty route after calling
RegistrationFOSUser1Controller::registerAction
- Fixed wrong route name "sonata_user_admin_resetting_request", replaced with "sonata_user_resetting_request"
- Symfony 3 security classes use in
AdminSecurityController
- Fixed a possible security risk as noticed in this line
- Internal test classes are now excluded from the autoloader
- Removed translation for 'Bad credentials' message in
SonataUserBundle.de.xliff
3.0.1 - 2016-05-20
- Admin classes extend
Sonata\AdminBundle\Admin\AbstractAdmin