Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes to encoder to update to Symfony #9842

Merged
merged 3 commits into from
Mar 29, 2021

Conversation

mabumusa1
Copy link
Member

Q A
Branch? "features"
Bug fix? yes
New feature? no
Deprecations? no
BC breaks? no
Automated tests included? no
Related user documentation PR URL mautic/mautic-documentation#...
Related developer documentation PR URL mautic/developer-documentation#...
Issue(s) addressed Fixes #9831

Description:

Steps to test this PR:

  1. Load up this PR
  2. Try to create a user
  3. Update a user
  4. There should be testes for API and SAML as well

@cla-bot cla-bot bot added the cla-signed The PR contributors have signed the contributors agreement label Mar 27, 2021
@mabumusa1 mabumusa1 self-assigned this Mar 27, 2021
@mabumusa1 mabumusa1 added bug Issues or PR's relating to bugs mautic-4 Relates to Mautic 4.x roles Anything related to users and roles labels Mar 27, 2021
@mabumusa1
Copy link
Member Author

For reference this article included the changes required http://securepasswords.info/symfony/

@RCheesley RCheesley added this to the Mautic 4.0 milestone Mar 27, 2021
@codecov
Copy link

codecov bot commented Mar 27, 2021

Codecov Report

Merging #9842 (07f6173) into features (21cc28b) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             features    #9842   +/-   ##
===========================================
  Coverage       39.66%   39.66%           
  Complexity      33978    33978           
===========================================
  Files            1989     1989           
  Lines          105731   105731           
===========================================
  Hits            41943    41943           
  Misses          63788    63788           
Impacted Files Coverage Δ Complexity Δ
...les/InstallBundle/Controller/InstallController.php 4.31% <ø> (ø) 55.00 <0.00> (ø)
...p/bundles/InstallBundle/Install/InstallService.php 27.31% <0.00%> (ø) 69.00 <0.00> (ø)
...es/UserBundle/Controller/Api/UserApiController.php 0.00% <0.00%> (ø) 27.00 <0.00> (ø)
...undles/UserBundle/Controller/ProfileController.php 0.00% <0.00%> (ø) 21.00 <0.00> (ø)
...bundles/UserBundle/Controller/PublicController.php 0.00% <0.00%> (ø) 12.00 <0.00> (ø)
...p/bundles/UserBundle/Controller/UserController.php 0.00% <0.00%> (ø) 63.00 <0.00> (ø)
app/bundles/UserBundle/Model/UserModel.php 30.89% <0.00%> (ø) 41.00 <5.00> (ø)
...undle/Security/Authenticator/FormAuthenticator.php 51.02% <ø> (ø) 18.00 <0.00> (ø)
...dles/UserBundle/Security/Provider/UserProvider.php 41.79% <0.00%> (ø) 24.00 <0.00> (ø)
...dles/UserBundle/Security/SAML/User/UserCreator.php 28.57% <0.00%> (ø) 6.00 <0.00> (ø)

Copy link
Sponsor Member

@RCheesley RCheesley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug reproduced and the PR applied fixes the issue - was able to create a new user and to log in as that user with the correct access rights! Thanks @mabumusa1 🚀

@RCheesley RCheesley added the pending-test-confirmation PR's that require one test before they can be merged label Mar 28, 2021
@@ -21,7 +21,7 @@
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoder;
Copy link
Sponsor Member

@escopecz escopecz Mar 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This use statement is not used anywhere and can be removed. This is just a nitpick, nothing that should block the PR merge.

Copy link
Sponsor Member

@escopecz escopecz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no issue in the code. Also tested changing password via the profile form and log in. 👍

@escopecz escopecz added ready-to-commit PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged and removed pending-test-confirmation PR's that require one test before they can be merged labels Mar 28, 2021
@RCheesley RCheesley merged commit 5a72640 into mautic:features Mar 29, 2021
@mabumusa1 mabumusa1 deleted the fix_9831_unable_edit_user branch April 3, 2021 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs cla-signed The PR contributors have signed the contributors agreement mautic-4 Relates to Mautic 4.x ready-to-commit PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged roles Anything related to users and roles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mautic 4: Unable to edit user account
3 participants