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

[8.x] Add the password reset URL to the toMailCallback #38552

Merged
merged 2 commits into from
Aug 26, 2021
Merged

[8.x] Add the password reset URL to the toMailCallback #38552

merged 2 commits into from
Aug 26, 2021

Conversation

NilLlisterri
Copy link
Contributor

It is useful to receive the generated reset URL in the callback, because if we want to only change the mail template texts (ResetPassword::toMailUsing(function($user, $token) {}) we have to generate it ourselves.

Backwards compatibility is kept, as it is a new parameter.

It is useful to receive the generated reset URL in the callback, because if we want to only change the mail template texts (ResetPassword::toMailUsing(function($user, $token) {}) we have to generate it ourselves.

Backwards compatibility is kept, as it is a new parameter.
@GrahamCampbell GrahamCampbell changed the title Add the password reset URL to the toMailCallback [8.x] Add the password reset URL to the toMailCallback Aug 26, 2021
@taylorotwell taylorotwell merged commit 9eb835f into laravel:8.x Aug 26, 2021
@chosten
Copy link

chosten commented Sep 4, 2021

FYI this is not backwards compatible.
My code broke because I have no password.reset route.
It was not an issue before because I was using the toMailCallback.
The fix is easy tho.

@driesvints
Copy link
Member

@squarebeard can you send in a pr?

@chosten
Copy link

chosten commented Sep 5, 2021

I meant "Adapting my code to this change was easy."
Sorry I wasn't clear enough.

@mpoma
Copy link

mpoma commented Sep 7, 2021

Laravel NOVA is not compatible. Please alert to David

@driesvints
Copy link
Member

I've sent in a PR to revert this: #38711

taylorotwell pushed a commit that referenced this pull request Sep 8, 2021
victorvilella pushed a commit to cdsistemas/framework that referenced this pull request Oct 12, 2021
* Add the password reset URL to the toMailCallback

It is useful to receive the generated reset URL in the callback, because if we want to only change the mail template texts (ResetPassword::toMailUsing(function($user, $token) {}) we have to generate it ourselves.

Backwards compatibility is kept, as it is a new parameter.

* Update ResetPassword.php

Co-authored-by: Taylor Otwell <[email protected]>
victorvilella pushed a commit to cdsistemas/framework that referenced this pull request Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants