-
Notifications
You must be signed in to change notification settings - Fork 11
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
EZP-31825: Use "updateUserPassword" if newer ezplatform-kernel is available #80
Conversation
@@ -78,7 +78,18 @@ public function userPasswordChangeAction(Request $request) | |||
$newPassword = $data->getNewPassword(); | |||
$userUpdateStruct = $this->userService->newUserUpdateStruct(); | |||
$userUpdateStruct->password = $newPassword; | |||
$this->userService->updateUser($user, $userUpdateStruct); | |||
if (method_exists($this->userService, 'updateUserPassword')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no point of doing it that way, both versions (this and kernel) gonna released at the same time. What you should do is rebase this PR against 2.1 branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no point of doing it that way, both versions (this and kernel) gonna released at the same time. What you should do is rebase this PR against 2.1 branch.
@Steveb-p ☝️ bump required ezplatform-kernel version instead, please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Steveb-p https://github.com/ezsystems/ezplatform-user/blob/master/composer.json#L21 actually it's already ok - ^1.2@dev, didn't notice
@@ -78,7 +78,18 @@ public function userPasswordChangeAction(Request $request) | |||
$newPassword = $data->getNewPassword(); | |||
$userUpdateStruct = $this->userService->newUserUpdateStruct(); | |||
$userUpdateStruct->password = $newPassword; | |||
$this->userService->updateUser($user, $userUpdateStruct); | |||
if (method_exists($this->userService, 'updateUserPassword')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no point of doing it that way, both versions (this and kernel) gonna released at the same time. What you should do is rebase this PR against 2.1 branch.
@Steveb-p ☝️ bump required ezplatform-kernel version instead, please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on eZPlatform-ee 3.1.2 with diff & path.
Related to ezsystems/ezplatform-kernel#117
Checklist:
$ composer fix-cs
)