Skip to content

Commit 6ea7c86

Browse files
authored
MP-5519 Fixed password reset link in merchant user email. (#8571)
MP-5519 When creating a new Merchant and user, the user receives a link to the backoffice instead of a link to merchant portal
1 parent ee57d6a commit 6ea7c86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Spryker/Shared/UserPasswordReset/Transfer/user_password_reset.transfer.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<property name="user" type="User"/>
2424
<property name="email" type="string"/>
2525
<property name="resetPasswordLink" type="string"/>
26+
<property name="resetPasswordBaseUrl" type="string"/>
2627
<property name="resetPasswordPath" type="string"/>
2728
</transfer>
2829

src/Spryker/Zed/UserPasswordReset/Business/ResetPassword/ResetPassword.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,9 @@ protected function createResetPasswordLink(UserPasswordResetRequestTransfer $use
211211
$query = $this->generateResetPasswordLinkQuery($token);
212212

213213
$passwordResetPath = $userPasswordResetRequestTransfer->getResetPasswordPath() ?? $this->resetConfig->getPasswordResetPath();
214+
$passwordResetBaseUrl = $userPasswordResetRequestTransfer->getResetPasswordBaseUrl() ?? $this->resetConfig->getBaseUrlZed();
214215

215-
return sprintf('%s%s?%s', $this->resetConfig->getBaseUrlZed(), $passwordResetPath, $query);
216+
return sprintf('%s%s?%s', $passwordResetBaseUrl, $passwordResetPath, $query);
216217
}
217218

218219
/**

0 commit comments

Comments
 (0)