Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: leonboot/FOSUserBundle
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: FriendsOfSymfony/FOSUserBundle
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Mar 29, 2018

  1. Copy the full SHA
    5de0ed4 View commit details

Commits on Mar 30, 2018

  1. Merge pull request FriendsOfSymfony#2770 from piotrantosik/patch-2

    Removed unused translation variable
    XWB authored Mar 30, 2018
    Copy the full SHA
    2acc0d7 View commit details

Commits on Jul 10, 2018

  1. Copy the full SHA
    a418928 View commit details
  2. Merge pull request FriendsOfSymfony#2817 from z38/random-compat

    Allow NOP version of paragonie/random_compat
    stof authored Jul 10, 2018
    Copy the full SHA
    007fd9b View commit details

Commits on Jul 27, 2018

  1. Copy the full SHA
    5d4fe15 View commit details

Commits on Aug 2, 2018

  1. Copy the full SHA
    442c23a View commit details

Commits on Aug 3, 2018

  1. Merge pull request FriendsOfSymfony#2826 from kniziol/master

    Update polish translations (to improve UX)
    XWB authored Aug 3, 2018
    Copy the full SHA
    8a228df View commit details
  2. Merge pull request FriendsOfSymfony#2824 from localheinz/feature/sort…

    …-packages
    
    Enhancement: Keep packages sorted in composer.json
    XWB authored Aug 3, 2018
    Copy the full SHA
    7a98427 View commit details
  3. Merge branch '2.0.x'

    XWB committed Aug 3, 2018
    Copy the full SHA
    a7cff65 View commit details
  4. Copy the full SHA
    a75aaf6 View commit details
  5. Fixed no_unused_imports cs issue

    XWB committed Aug 3, 2018
    Copy the full SHA
    4368c7d View commit details
  6. Increase Travis memory limit

    XWB committed Aug 3, 2018
    Copy the full SHA
    93f8b76 View commit details
  7. Merge pull request FriendsOfSymfony#2827 from localheinz/feature/norm…

    …alize
    
    Enhancement: Normalize composer.json
    XWB authored Aug 3, 2018
    Copy the full SHA
    fe7e4cf View commit details

Commits on Aug 7, 2018

  1. Move Travis memory limit

    XWB committed Aug 7, 2018
    Copy the full SHA
    d41c5a9 View commit details

Commits on Aug 21, 2018

  1. Copy the full SHA
    4281aa6 View commit details

Commits on Aug 24, 2018

  1. Update FI translation

    AntoineLemaire committed Aug 24, 2018
    Copy the full SHA
    6da14f5 View commit details
  2. Update SV translation

    AntoineLemaire committed Aug 24, 2018
    Copy the full SHA
    c331509 View commit details

Commits on Aug 25, 2018

  1. Merge pull request FriendsOfSymfony#2842 from AntoineLemaire/master

    Update SV & FI translations
    XWB authored Aug 25, 2018
    Copy the full SHA
    5bdbbc6 View commit details

Commits on Aug 30, 2018

  1. Symfony 2 is old, and making it explicit it works with later versions

    I'm surprised the docs still somehow stick to Symfony 2, since it is supposed to support Symfony 3 (and 4 ?).
    
    The change is tiny but probably useful for newcomers
    olberger authored Aug 30, 2018
    Copy the full SHA
    ea531bd View commit details
  2. Merge pull request FriendsOfSymfony#2846 from olberger/patch-1

    Symfony 2 is old, and making it explicit it works with later versions
    XWB authored Aug 30, 2018
    Copy the full SHA
    44b626e View commit details

Commits on Sep 7, 2018

  1. fix title underline length

    xabbuh authored Sep 7, 2018
    Copy the full SHA
    5d26e47 View commit details
  2. Copy the full SHA
    231086d View commit details

Commits on Sep 10, 2018

  1. Merge pull request FriendsOfSymfony#2849 from mweimerskirch/translati…

    …ons-lb
    
    Updated Luxembourgish translations
    XWB authored Sep 10, 2018
    Copy the full SHA
    f82bd59 View commit details
  2. Merge pull request FriendsOfSymfony#2848 from xabbuh/patch-1

    fix title underline length
    XWB authored Sep 10, 2018
    Copy the full SHA
    3820773 View commit details
  3. Update polish translations (to improve UX) & add missing translations (

    …FriendsOfSymfony#2850)
    
    * Ignore user settings of Idea/PhpStorm IDE
    
    * Update polish translations (to improve UX)
    
    * Add missing polish translations (compared with english translations)
    
    * Revert "Ignore user settings of Idea/PhpStorm IDE"
    
    This reverts commit 9077278
    kniziol authored and XWB committed Sep 10, 2018
    Copy the full SHA
    10cbdc1 View commit details

Commits on Sep 11, 2018

  1. Copy the full SHA
    9d5371e View commit details

Commits on Sep 18, 2018

  1. Copy the full SHA
    7a9408f View commit details
  2. Merge pull request FriendsOfSymfony#2851 from mweimerskirch/translati…

    …ons-lb
    
    Fixed a missing translation in the LB language file
    XWB authored Sep 18, 2018
    Copy the full SHA
    7cedff0 View commit details

Commits on Sep 19, 2018

  1. Merge pull request FriendsOfSymfony#2853 from axzx/master

    New rounting files for Symfonyf4.1
    XWB authored Sep 19, 2018
    Copy the full SHA
    f328299 View commit details
  2. Migrated SF AdvancedUserInterface to FOS UserInterface (FriendsOfSymf…

    …ony#2815)
    
    * Migrated SF AdvancedUserInterface to FOS UserInterface
    
    AdvancedUserInterface is deprecated since Symfony 4.1
    - symfony/symfony#23508
    
    Issue:
    - FriendsOfSymfony#2803 Deprecation with Symfony 4.1 - AdvancedUserInterface
    
    * Code style fixed and using `getMockBuilder` instead of `createMock`
    
    * Code style fixed and using attributes instead of `$this->expectException`
    
    * Change to restart travis
    
    * EquatableInterface added to `UserInterface` and implementation added to `User`
    
    * Tests after merge of master fixed
    
    * Tests after merge of master fixed
    
    * Update README.md
    
    * Added compatibility for apps that check against AdvancedUserInterface
    
    * Code style fixed to pass all travis tests
    
    * fos_user.user_checker Service marked as non-public
    devtronic authored and XWB committed Sep 19, 2018
    Copy the full SHA
    b93d732 View commit details
  3. Bump branch alias

    XWB committed Sep 19, 2018
    Copy the full SHA
    44fb3fa View commit details
  4. Merge pull request FriendsOfSymfony#2839 from denischatelain/master

    Bump the default minimal password length to 8 characters
    XWB authored Sep 19, 2018
    Copy the full SHA
    4125505 View commit details

Commits on Oct 10, 2018

  1. Copy the full SHA
    0e6f71c View commit details
  2. Copy the full SHA
    4e07363 View commit details

Commits on Oct 15, 2018

  1. Merge pull request FriendsOfSymfony#2864 from MrNicodemuz/patch-1

    Fix missing Thai language translation
    XWB authored Oct 15, 2018
    Copy the full SHA
    bd71ad6 View commit details
  2. Merge pull request FriendsOfSymfony#2863 from polishExperiment/patch-2

    Fix typo in index.rst
    XWB authored Oct 15, 2018
    Copy the full SHA
    a8f9aa3 View commit details

Commits on Oct 27, 2018

  1. Update .travis.yml

    andreybolonin authored Oct 27, 2018
    Copy the full SHA
    b580d12 View commit details

Commits on Oct 29, 2018

  1. Merge pull request FriendsOfSymfony#2866 from andreybolonin/patch-2

    Update .travis.yml
    XWB authored Oct 29, 2018
    Copy the full SHA
    031bad8 View commit details

Commits on Dec 4, 2018

  1. Revert "New rounting files for Symfonyf4.1"

    This reverts commit 7a9408f.
    
    Conflicts:
    	Resources/doc/index.rst
    XWB committed Dec 4, 2018
    Copy the full SHA
    57daa9e View commit details

Commits on Dec 7, 2018

  1. Add require translation

    Tri Pham committed Dec 7, 2018
    Copy the full SHA
    23e3488 View commit details
  2. Merge pull request FriendsOfSymfony#2879 from phamuyentri/improvement…

    …/composer-add-translator
    
    Add require translation
    XWB authored Dec 7, 2018
    Copy the full SHA
    fc8a29f View commit details
  3. Improve Vietnamese Translate

    Tri Pham committed Dec 7, 2018
    Copy the full SHA
    414b27e View commit details

Commits on Dec 9, 2018

  1. Merge pull request FriendsOfSymfony#2875 from XWB/routing

    Revert "New rounting files for Symfonyf4.1"
    stof authored Dec 9, 2018
    Copy the full SHA
    935127b View commit details
  2. Merge pull request FriendsOfSymfony#2880 from phamuyentri/improve-vie…

    …tnamese-translated
    
    Improve Vietnamese Translation
    XWB authored Dec 9, 2018
    Copy the full SHA
    f07aa7b View commit details

Commits on Dec 10, 2018

  1. Fix indentation in yaml file

    Tri Pham committed Dec 10, 2018
    Copy the full SHA
    1a2f86a View commit details
  2. Update deprecated from Symfony 4.2

    Tri Pham committed Dec 10, 2018
    Copy the full SHA
    c10ef59 View commit details
  3. Merge pull request FriendsOfSymfony#2882 from phamuyentri/update-depr…

    …ecated-tree-builder-from-Symfony4.2
    
    Update deprecated from Symfony 4.2
    XWB authored Dec 10, 2018
    Copy the full SHA
    f4732e9 View commit details
  4. Merge pull request FriendsOfSymfony#2881 from phamuyentri/fix-indenta…

    …tion
    
    Fix indentation in yaml file
    XWB authored Dec 10, 2018
    Copy the full SHA
    5850fba View commit details

Commits on Dec 27, 2018

  1. Copy the full SHA
    6733bc8 View commit details

Commits on Jan 29, 2019

  1. fix php-cs-fixer test

    tattali committed Jan 29, 2019
    Copy the full SHA
    ff1e2bd View commit details
Showing with 2,189 additions and 5,665 deletions.
  1. +3 −3 .gitattributes
  2. +58 −0 .github/workflows/ci.yaml
  3. +35 −0 .github/workflows/static-analysis.yaml
  4. +3 −2 .gitignore
  5. +6 −2 .php_cs.dist → .php-cs-fixer.dist.php
  6. +0 −40 .travis.yml
  7. +96 −1 Changelog.md
  8. +0 −199 Controller/GroupController.php
  9. +0 −100 Controller/SecurityController.php
  10. +0 −50 DependencyInjection/Compiler/CheckForMailerPass.php
  11. +0 −75 Doctrine/CouchDB/UserListener.php
  12. +0 −94 Doctrine/GroupManager.php
  13. +0 −54 Event/FilterGroupResponseEvent.php
  14. +0 −38 Event/GetResponseGroupEvent.php
  15. +0 −35 Event/GetResponseNullableUserEvent.php
  16. +0 −57 Event/GroupEvent.php
  17. +0 −69 Form/Type/GroupFormType.php
  18. +0 −107 Mailer/Mailer.php
  19. +0 −122 Model/Group.php
  20. +0 −69 Model/GroupInterface.php
  21. +0 −39 Model/GroupManager.php
  22. +0 −78 Model/GroupManagerInterface.php
  23. +0 −61 Model/GroupableInterface.php
  24. +19 −12 README.md
  25. +0 −10 Resources/config/doctrine-mapping/Group.couchdb.xml
  26. +0 −23 Resources/config/doctrine-mapping/Group.mongodb.xml
  27. +0 −15 Resources/config/doctrine-mapping/Group.orm.xml
  28. +0 −20 Resources/config/doctrine-mapping/User.couchdb.xml
  29. +0 −18 Resources/config/doctrine_group.xml
  30. +0 −30 Resources/config/group.xml
  31. +0 −27 Resources/config/routing/group.xml
  32. +0 −40 Resources/config/storage-validation/couchdb.xml
  33. +0 −305 Resources/doc/groups.rst
  34. +0 −25 Resources/translations/validators.pl.yml
  35. +0 −5 Resources/views/Group/edit.html.twig
  36. +0 −8 Resources/views/Group/edit_content.html.twig
  37. +0 −5 Resources/views/Group/list.html.twig
  38. +0 −7 Resources/views/Group/list_content.html.twig
  39. +0 −5 Resources/views/Group/new.html.twig
  40. +0 −8 Resources/views/Group/new_content.html.twig
  41. +0 −5 Resources/views/Group/show.html.twig
  42. +0 −5 Resources/views/Group/show_content.html.twig
  43. +0 −43 Tests/Form/Type/GroupFormTypeTest.php
  44. +0 −55 Tests/Form/Type/TypeTestCase.php
  45. +0 −135 Tests/Mailer/MailerTest.php
  46. +0 −137 Tests/Mailer/TwigSwiftMailerTest.php
  47. +0 −87 Tests/Routing/RoutingTest.php
  48. +0 −94 Tests/Security/LoginManagerTest.php
  49. +0 −25 Tests/TestGroup.php
  50. +0 −95 Tests/Util/PasswordUpdaterTest.php
  51. +45 −34 composer.json
  52. +26 −80 {Resources/doc → docs}/adding_invitation_registration.rst
  53. 0 {Resources/doc → docs}/canonicalizer.rst
  54. 0 {Resources/doc → docs}/command_line_tools.rst
  55. +2 −8 {Resources/doc → docs}/configuration_reference.rst
  56. +6 −2 {Resources/doc → docs}/controller_events.rst
  57. +1 −2 {Resources/doc → docs}/custom_storage_layer.rst
  58. +2 −3 {Resources/doc → docs}/doctrine.rst
  59. +9 −22 {Resources/doc → docs}/emails.rst
  60. +3 −1 {Resources/doc → docs}/form_type.rst
  61. +16 −46 {Resources/doc → docs}/index.rst
  62. +1 −1 {Resources/doc → docs}/logging_by_username_or_email.rst
  63. +0 −6 {Resources/doc → docs}/overriding_forms.rst
  64. 0 {Resources/doc → docs}/overriding_templates.rst
  65. 0 {Resources/doc → docs}/overriding_validation.rst
  66. +1 −1 {Resources/doc → docs}/routing.rst
  67. +3 −9 {Resources/doc → docs}/user_manager.rst
  68. +8 −6 phpunit.xml.dist
  69. +17 −20 { → src}/Command/ActivateUserCommand.php
  70. +19 −21 { → src}/Command/ChangePasswordCommand.php
  71. +18 −21 { → src}/Command/CreateUserCommand.php
  72. +17 −20 { → src}/Command/DeactivateUserCommand.php
  73. +7 −13 { → src}/Command/DemoteUserCommand.php
  74. +7 −13 { → src}/Command/PromoteUserCommand.php
  75. +19 −22 { → src}/Command/RoleCommand.php
  76. +9 −13 { → src}/Controller/ChangePasswordController.php
  77. +12 −16 { → src}/Controller/ProfileController.php
  78. +34 −33 { → src}/Controller/RegistrationController.php
  79. +22 −38 { → src}/Controller/ResettingController.php
  80. +72 −0 src/Controller/SecurityController.php
  81. +8 −7 { → src}/DependencyInjection/Compiler/CheckForSessionPass.php
  82. +7 −9 { → src}/DependencyInjection/Compiler/InjectRememberMeServicesPass.php
  83. +5 −5 { → src}/DependencyInjection/Compiler/InjectUserCheckerPass.php
  84. +6 −6 { → src}/DependencyInjection/Compiler/ValidationPass.php
  85. +18 −69 { → src}/DependencyInjection/Configuration.php
  86. +66 −108 { → src}/DependencyInjection/FOSUserExtension.php
  87. +16 −22 { → src}/Doctrine/UserListener.php
  88. +13 −28 { → src}/Doctrine/UserManager.php
  89. +3 −12 { → src}/Event/FilterUserResponseEvent.php
  90. +6 −21 { → src}/Event/FormEvent.php
  91. +66 −0 src/Event/GetResponseNullableUserEvent.php
  92. +4 −10 { → src}/Event/GetResponseUserEvent.php
  93. +5 −17 { → src}/Event/UserEvent.php
  94. +12 −15 { → src}/EventListener/AuthenticationListener.php
  95. +11 −22 { → src}/EventListener/EmailConfirmationListener.php
  96. +32 −33 { → src}/EventListener/FlashListener.php
  97. +12 −17 { → src}/EventListener/LastLoginListener.php
  98. +11 −29 { → src}/EventListener/ResettingListener.php
  99. +7 −20 { → src}/FOSUserBundle.php
  100. +26 −89 { → src}/FOSUserEvents.php
  101. +8 −8 { → src}/Form/DataTransformer/UserToUsernameTransformer.php
  102. +1 −4 { → src}/Form/Factory/FactoryInterface.php
  103. +9 −9 { → src}/Form/Factory/FormFactory.php
  104. +23 −42 { → src}/Form/Type/ChangePasswordFormType.php
  105. +19 −39 { → src}/Form/Type/ProfileFormType.php
  106. +16 −35 { → src}/Form/Type/RegistrationFormType.php
  107. +14 −33 { → src}/Form/Type/ResettingFormType.php
  108. +4 −25 { → src}/Form/Type/UsernameFormType.php
  109. +2 −6 { → src}/Mailer/MailerInterface.php
  110. +4 −10 { → src}/Mailer/NoopMailer.php
  111. +32 −54 Mailer/TwigSwiftMailer.php → src/Mailer/TwigSymfonyMailer.php
  112. +69 −202 { → src}/Model/User.php
  113. +28 −13 { → src}/Model/UserInterface.php
  114. +12 −39 { → src}/Model/UserManager.php
  115. +16 −38 { → src}/Model/UserManagerInterface.php
  116. +2 −1 { → src}/Resources/config/change_password.xml
  117. 0 { → src}/Resources/config/commands.xml
  118. +11 −14 { → src}/Resources/config/doctrine-mapping/User.mongodb.xml
  119. 0 { → src}/Resources/config/doctrine-mapping/User.orm.xml
  120. +1 −1 { → src}/Resources/config/doctrine.xml
  121. +0 −1 { → src}/Resources/config/email_confirmation.xml
  122. +1 −1 { → src}/Resources/config/flash_notifications.xml
  123. 0 { → src}/Resources/config/listeners.xml
  124. +9 −23 { → src}/Resources/config/mailer.xml
  125. +2 −1 { → src}/Resources/config/profile.xml
  126. +2 −1 { → src}/Resources/config/registration.xml
  127. +2 −1 { → src}/Resources/config/resetting.xml
  128. 0 { → src}/Resources/config/routing/all.xml
  129. +1 −1 { → src}/Resources/config/routing/change_password.xml
  130. +2 −2 { → src}/Resources/config/routing/profile.xml
  131. +4 −4 { → src}/Resources/config/routing/registration.xml
  132. +4 −4 { → src}/Resources/config/routing/resetting.xml
  133. +3 −3 { → src}/Resources/config/routing/security.xml
  134. +5 −1 { → src}/Resources/config/security.xml
  135. +0 −11 { → src}/Resources/config/storage-validation/mongodb.xml
  136. +0 −11 { → src}/Resources/config/storage-validation/orm.xml
  137. 0 { → src}/Resources/config/username_form_type.xml
  138. +2 −2 { → src}/Resources/config/util.xml
  139. +0 −16 { → src}/Resources/config/validation.xml
  140. 0 { → src}/Resources/config/validator.xml
  141. +0 −13 { → src}/Resources/translations/FOSUserBundle.af.yml
  142. +0 −13 { → src}/Resources/translations/FOSUserBundle.ar.yml
  143. +7 −20 { → src}/Resources/translations/FOSUserBundle.bg.yml
  144. +0 −13 { → src}/Resources/translations/FOSUserBundle.bn.yml
  145. +0 −13 { → src}/Resources/translations/FOSUserBundle.bn_BD.yml
  146. +0 −12 { → src}/Resources/translations/FOSUserBundle.ca.yml
  147. +0 −12 { → src}/Resources/translations/FOSUserBundle.cs.yml
  148. +0 −13 { → src}/Resources/translations/FOSUserBundle.da.yml
  149. +0 −12 { → src}/Resources/translations/FOSUserBundle.de.yml
  150. +0 −12 { → src}/Resources/translations/FOSUserBundle.el.yml
  151. +0 −18 { → src}/Resources/translations/FOSUserBundle.en.yml
  152. +0 −13 { → src}/Resources/translations/FOSUserBundle.eo.yml
  153. +1 −13 { → src}/Resources/translations/FOSUserBundle.es.yml
  154. +3 −15 { → src}/Resources/translations/FOSUserBundle.et.yml
  155. +0 −12 { → src}/Resources/translations/FOSUserBundle.eu.yml
  156. +0 −13 { → src}/Resources/translations/FOSUserBundle.fa.yml
  157. +5 −13 { → src}/Resources/translations/FOSUserBundle.fi.yml
  158. +0 −12 { → src}/Resources/translations/FOSUserBundle.fr.yml
  159. +0 −14 { → src}/Resources/translations/FOSUserBundle.gl.yml
  160. +0 −12 { → src}/Resources/translations/FOSUserBundle.he.yml
  161. +0 −12 { → src}/Resources/translations/FOSUserBundle.hr.yml
  162. +0 −13 { → src}/Resources/translations/FOSUserBundle.hu.yml
  163. +0 −13 { → src}/Resources/translations/FOSUserBundle.id.yml
  164. +0 −13 { → src}/Resources/translations/FOSUserBundle.it.yml
  165. +0 −12 { → src}/Resources/translations/FOSUserBundle.ja.yml
  166. +0 −12 { → src}/Resources/translations/FOSUserBundle.ky.yml
  167. +18 −17 { → src}/Resources/translations/FOSUserBundle.lb.yml
  168. +0 −12 { → src}/Resources/translations/FOSUserBundle.lt.yml
  169. +0 −12 { → src}/Resources/translations/FOSUserBundle.lv.yml
  170. +0 −13 { → src}/Resources/translations/FOSUserBundle.mn.yml
  171. +0 −12 { → src}/Resources/translations/FOSUserBundle.nb.yml
  172. +3 −13 { → src}/Resources/translations/FOSUserBundle.nl.yml
  173. +14 −25 { → src}/Resources/translations/FOSUserBundle.pl.yml
  174. +0 −12 { → src}/Resources/translations/FOSUserBundle.pt.yml
  175. +0 −12 { → src}/Resources/translations/FOSUserBundle.pt_BR.yml
  176. +0 −13 { → src}/Resources/translations/FOSUserBundle.ro.yml
  177. +0 −12 { → src}/Resources/translations/FOSUserBundle.ru.yml
  178. +0 −12 { → src}/Resources/translations/FOSUserBundle.sk.yml
  179. +0 −12 { → src}/Resources/translations/FOSUserBundle.sl.yml
  180. +1 −13 { → src}/Resources/translations/FOSUserBundle.sr_Latn.yml
  181. +5 −13 { → src}/Resources/translations/FOSUserBundle.sv.yml
  182. +4 −13 { → src}/Resources/translations/FOSUserBundle.th.yml
  183. +1 −13 { → src}/Resources/translations/FOSUserBundle.tr.yml
  184. +0 −12 { → src}/Resources/translations/FOSUserBundle.uk.yml
  185. +18 −17 { → src}/Resources/translations/FOSUserBundle.vi.yml
  186. +0 −12 { → src}/Resources/translations/FOSUserBundle.zh_CN.yml
  187. +0 −7 { → src}/Resources/translations/validators.ar.yml
  188. +0 −4 { → src}/Resources/translations/validators.bg.yml
  189. +0 −7 { → src}/Resources/translations/validators.bn.yml
  190. +0 −7 { → src}/Resources/translations/validators.bn_BD.yml
  191. +0 −7 { → src}/Resources/translations/validators.ca.yml
  192. +0 −4 { → src}/Resources/translations/validators.cs.yml
  193. +0 −7 { → src}/Resources/translations/validators.da.yml
  194. +0 −7 { → src}/Resources/translations/validators.de.yml
  195. +0 −7 { → src}/Resources/translations/validators.el.yml
  196. +0 −7 { → src}/Resources/translations/validators.en.yml
  197. +0 −7 { → src}/Resources/translations/validators.eo.yml
  198. +0 −7 { → src}/Resources/translations/validators.es.yml
  199. +0 −4 { → src}/Resources/translations/validators.eu.yml
  200. +0 −7 { → src}/Resources/translations/validators.fa.yml
  201. +0 −7 { → src}/Resources/translations/validators.fi.yml
  202. +0 −7 { → src}/Resources/translations/validators.fr.yml
  203. +0 −7 { → src}/Resources/translations/validators.he.yml
  204. +0 −7 { → src}/Resources/translations/validators.hr.yml
  205. +0 −7 { → src}/Resources/translations/validators.hu.yml
  206. +0 −7 { → src}/Resources/translations/validators.id.yml
  207. +0 −7 { → src}/Resources/translations/validators.it.yml
  208. +0 −7 { → src}/Resources/translations/validators.ja.yml
  209. +0 −4 { → src}/Resources/translations/validators.ky.yml
  210. +21 −0 src/Resources/translations/validators.lb.yml
  211. +0 −7 { → src}/Resources/translations/validators.lt.yml
  212. +0 −7 { → src}/Resources/translations/validators.lv.yml
  213. +0 −7 { → src}/Resources/translations/validators.nb.yml
  214. +0 −4 { → src}/Resources/translations/validators.nl.yml
  215. +21 −0 src/Resources/translations/validators.pl.yml
  216. +0 −4 { → src}/Resources/translations/validators.pt.yml
  217. +0 −4 { → src}/Resources/translations/validators.pt_BR.yml
  218. +0 −7 { → src}/Resources/translations/validators.ro.yml
  219. +0 −7 { → src}/Resources/translations/validators.ru.yml
  220. +0 −7 { → src}/Resources/translations/validators.sk.yml
  221. +0 −7 { → src}/Resources/translations/validators.sl.yml
  222. +0 −7 { → src}/Resources/translations/validators.sr_Latn.yml
  223. +0 −7 { → src}/Resources/translations/validators.sv.yml
  224. +0 −4 { → src}/Resources/translations/validators.th.yml
  225. +0 −7 { → src}/Resources/translations/validators.tr.yml
  226. +0 −7 { → src}/Resources/translations/validators.uk.yml
  227. +0 −4 { → src}/Resources/translations/validators.vi.yml
  228. +0 −7 { → src}/Resources/translations/validators.zh_CN.yml
  229. 0 { → src}/Resources/views/ChangePassword/change_password.html.twig
  230. 0 { → src}/Resources/views/ChangePassword/change_password_content.html.twig
  231. 0 { → src}/Resources/views/Profile/edit.html.twig
  232. 0 { → src}/Resources/views/Profile/edit_content.html.twig
  233. 0 { → src}/Resources/views/Profile/show.html.twig
  234. 0 { → src}/Resources/views/Profile/show_content.html.twig
  235. 0 { → src}/Resources/views/Registration/check_email.html.twig
  236. 0 { → src}/Resources/views/Registration/confirmed.html.twig
  237. +1 −1 { → src}/Resources/views/Registration/email.txt.twig
  238. 0 { → src}/Resources/views/Registration/register.html.twig
  239. 0 { → src}/Resources/views/Registration/register_content.html.twig
  240. 0 { → src}/Resources/views/Resetting/check_email.html.twig
  241. 0 { → src}/Resources/views/Resetting/email.txt.twig
  242. 0 { → src}/Resources/views/Resetting/request.html.twig
  243. 0 { → src}/Resources/views/Resetting/request_content.html.twig
  244. 0 { → src}/Resources/views/Resetting/reset.html.twig
  245. 0 { → src}/Resources/views/Resetting/reset_content.html.twig
  246. 0 { → src}/Resources/views/Security/login.html.twig
  247. 0 { → src}/Resources/views/Security/login_content.html.twig
  248. +1 −1 { → src}/Resources/views/layout.html.twig
  249. +3 −4 { → src}/Security/EmailProvider.php
  250. +3 −4 { → src}/Security/EmailUserProvider.php
  251. +13 −28 { → src}/Security/LoginManager.php
  252. +2 −4 { → src}/Security/LoginManagerInterface.php
  253. +38 −0 src/Security/UserChecker.php
  254. +13 −20 { → src}/Security/UserProvider.php
  255. +5 −7 { → src}/Util/CanonicalFieldsUpdater.php
  256. +2 −5 { → src}/Util/Canonicalizer.php
  257. +3 −3 { → src}/Util/CanonicalizerInterface.php
  258. +13 −11 Util/PasswordUpdater.php → src/Util/HashingPasswordUpdater.php
  259. +1 −5 { → src}/Util/PasswordUpdaterInterface.php
  260. +1 −4 { → src}/Util/TokenGenerator.php
  261. +1 −4 { → src}/Util/TokenGeneratorInterface.php
  262. +22 −28 { → src}/Util/UserManipulator.php
  263. +4 −2 { → src}/Validator/Initializer.php
  264. +11 −22 {Tests → tests}/Command/ActivateUserCommandTest.php
  265. +12 −27 {Tests → tests}/Command/ChangePasswordCommandTest.php
  266. +12 −35 {Tests → tests}/Command/CreateUserCommandTest.php
  267. +12 −23 {Tests → tests}/Command/DeactivateUserCommandTest.php
  268. +12 −28 {Tests → tests}/Command/DemoteUserCommandTest.php
  269. +12 −28 {Tests → tests}/Command/PromoteUserCommandTest.php
  270. +94 −128 {Tests → tests}/DependencyInjection/FOSUserExtensionTest.php
  271. +19 −18 {Tests → tests}/Doctrine/UserManagerTest.php
  272. +2 −2 {Tests → tests}/EventListener/AuthenticationListenerTest.php
  273. +23 −4 {Tests → tests}/EventListener/FlashListenerTest.php
  274. +7 −10 {Tests → tests}/Form/Type/ChangePasswordFormTypeTest.php
  275. +5 −8 {Tests → tests}/Form/Type/ProfileFormTypeTest.php
  276. +7 −10 {Tests → tests}/Form/Type/RegistrationFormTypeTest.php
  277. +7 −10 {Tests → tests}/Form/Type/ResettingFormTypeTest.php
  278. +4 −6 {Tests → tests}/Form/Type/ValidatorExtensionTypeTestCase.php
  279. +30 −27 {Tests → tests}/Model/UserManagerTest.php
  280. +20 −4 {Tests → tests}/Model/UserTest.php
  281. +78 −0 tests/Routing/RoutingTest.php
  282. +19 −19 {Tests → tests}/Security/EmailProviderTest.php
  283. +14 −12 {Tests → tests}/Security/EmailUserProviderTest.php
  284. +85 −0 tests/Security/LoginManagerTest.php
  285. +58 −0 tests/Security/UserCheckerTest.php
  286. +18 −18 {Tests → tests}/Security/UserProviderTest.php
  287. +0 −7 {Tests → tests}/TestUser.php
  288. +10 −2 {Tests → tests}/Util/CanonicalFieldsUpdaterTest.php
  289. +8 −11 {Tests → tests}/Util/CanonicalizerTest.php
  290. +106 −0 tests/Util/HashingPasswordUpdaterTest.php
  291. +18 −24 {Tests → tests}/Util/UserManipulatorTest.php
  292. 0 {Tests → tests}/bootstrap.php
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php_cs.dist export-ignore
/.travis.yml export-ignore
/.php-cs-fixer.dist.php export-ignore
/Changelog.md export-ignore
/Makefile export-ignore
/README.md export-ignore
/Tests export-ignore
/docs/ export-ignore
/tests/ export-ignore
/Upgrade.md export-ignore
/phpunit.xml.dist export-ignore
58 changes: 58 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
pull_request:
push:
branches:
- master
- 2.x
- 3.x

jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
symfony-versions: [false]
include:
- description: 'Symfony 6.*'
php: '8.2'
symfony-versions: '^6.4'
name: PHP ${{ matrix.php }} ${{ matrix.description }}
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: composer-${{ matrix.php }}-${{ matrix.symfony-versions }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ matrix.php }}-
composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Install symfony/flex
run: composer config --global --no-plugins allow-plugins.symfony/flex true && composer global require symfony/flex
if: matrix.symfony-versions

- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-versions }}
run: composer update

- name: Install PHPUnit
run: ./vendor/bin/simple-phpunit install

- name: Run PHPUnit tests
run: |
./vendor/bin/simple-phpunit
35 changes: 35 additions & 0 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Code style and composer validate

on:
pull_request:
push:
branches: [ master, 2.x, 3.x ]

jobs:
composer-validate:
name: Validate composer.json
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate
run: composer validate --no-check-lock --strict

php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Install dependencies
run: composer install

- name: Run script
run: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.php_cs
.php_cs.cache
.php-cs-fixer.php
.php-cs-fixer.cache
composer.lock
phpunit.xml
vendor/
.phpunit.result.cache
8 changes: 6 additions & 2 deletions .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -9,10 +9,10 @@
file that was distributed with this source code.
EOF;

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'long'],
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_unsets' => true,
'header_comment' => ['header' => $header],
'linebreak_after_opening_tag' => true,
@@ -23,6 +23,10 @@
'php_unit_construct' => true,
'php_unit_strict' => true,
'phpdoc_no_empty_return' => false,
'no_superfluous_phpdoc_tags' => [
'remove_inheritdoc' => true,
'allow_mixed' => true,
],
])
->setUsingCache(true)
->setRiskyAllowed(true)
40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

97 changes: 96 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,104 @@
Changelog
=========

### 2.1.3 (2018-xx-xx)
### 4.0.0 (2024-07-04)

* [BC break] Removed the CouchDB ODM integration
* [BC break] Added return types in most methods
* [BC break] Marked classes as final when they were `@final`
* Removed support for symfony <6.4
* Removed support for PHP <8.1
* Remove the mailer implementation based on Swiftmailer
* Added support for Symfony 7

### 3.4.0 (2024-06-25)

* Deprecated the TwigSwiftMailer implementation

### 3.3.0 (2024-06-24)

* Added a mailer implementation based on symfony/mailer and Twig
* Added tentative return types in most methods
* Deprecated the CouchDB ODM integration as the ODM is unmaintained

### 3.2.1 (2023-07-06)

* Fixed remaining deprecations with Symfony 6.3

### 3.2.0 (2023-07-06)

* Fixed deprecations with Symfony 6.3
* Fixed deprecations with Doctrine ORM (requires using DoctrineBundle 2.10.1 or newer for the fix to be effective)
* Fixed the way to access the session when enabling confirmation emails
* Fixed the way to access the firewall name when enabling the registration feature

### 3.1.0 (2022-10-26)

* Added support for Symfony 6

### 3.0.2 (2022-10-26)

* Fixed support for the remember-me in the programmatic login when using the new authentication system of Symfony.
* Fixed some deprecations when using Symfony 5.4.

### 3.0.1 (2022-08-27)

* Fixed the wiring of controllers to avoid a deprecation warning when using Twig.

### 3.0.0 (2022-04-28)

* [BC break] Change the base class of controllers to use the `AbstractController` (but extending the controllers is not officially supported anymore).
* [BC break] Remove the group feature
* [BC break] Change the base class for events to `Symfony\Contracts\EventDispatcher\Event` instead of `Symfony\Component\EventDispatcher\Event`
* [BC break] Remove the `Symfony\Component\Security\Core\User\AdvancedUserInterface` methods from our `UserInterface`
* [BC break] The ResettingListener now longer blocks password resetting requests based on the `isAccountNonLocked` method of the `AdvancedUserInterface`. Projects customizing `isAccountNonLocked` for that purpose should instead register their own listener for the `FOSUserEvents::RESETTING_RESET_REQUEST` event to set a response instead of processing the request.
* [BC break] Made `\FOS\UserBundle\Model\User::serialize` and `\FOS\UserBundle\Model\User::unserialize` final. Child classes needing to extend the serialization must override `__serialize` and `__unserialize` instead.
* [BC break] `\FOS\UserBundle\Event\GetResponseNullableUserEvent` no longer inherits from `\FOS\UserBundle\Event\GetResponseUserEvent` and `\FOS\UserBundle\Event\UserEvent` as that was breaking variance rules.
* [BC break] A few methods of `FOS\UserBundle\Model\User` now have return types (in methods where Symfony 6 requires them)
* [BC break] The legacy mailer based on SwiftMailer and symfony/templating is no longer used by default. Selecting a mailer service is now mandatory when using a feature needing the mailer.
* [BC break] Remove the legacy mailer based on SwiftMailer and symfony/templating. Use `fos_user.mailer.twig_swift` or a custom mailer service.
* Add support for Symfony 5.
* Add return types in most methods.
* Add autowiring support for `FOS\UserBundle\Mailer\MailerInterface`

### 2.2.4 (2022-01-14)

* Fixed a deprecation warning reported by DebugClassLoader in the AdvancedUserInterface BC layer due to the change done in 2.2.3.

### 2.2.3 (2022-01-14)

* Added missing deprecations on some group-related event classes
* Fixed an invalid report of `UserInterface` being deprecated in static analyzers
* Fixed the documented return type for `\FOS\UserBundle\Event\GetResponseNullableUserEvent::getUser`

### 2.2.2 (2021-09-08)

* Fixed a deprecation warning about groups being triggered when loading all Doctrine metadata.

### 2.2.1 (2021-09-08)

* Fixed a deprecation warning about groups being triggered when loading the User class of the bundle.

### 2.2.0 (2021-08-26)

* Deprecated the Groups feature.
* Marked all controllers final.
* Marked internal classes as such.
* Added Mongolian translation.
* Added an email provider.
* Added a custom user checker.
* Added PHP 7.4 and PHP 8.0 support.
* Removed fieldName attribute in MongoDB mapping.
* Registration confirmation now redirects to login page if token is invalid.
* User model will not rely on `AdvancedUserInterface` anymore.
* Self-salting password encoders will not create a salt anymore.
* FlashListener constructor now accepts `SessionInterface`.
* Fixed several Symfony deprecation notices.
* Fixed several translations.
* Bumped the min PHP version to 7.1.3.
* Bumped the min Symfony version to 4.4.
* Added compatibility with Twig 3.
* Added compatibility with doctrine/persistence 2.

### 2.1.2 (2018-03-08)

Loading