laravel / fortify

Backend controllers and scaffolding for Laravel authentication.
https://laravel.com/docs/fortify
MIT License
1.62k stars 294 forks source link

Unable to reset password with fortify custom column name #273

Closed webtamizhan closed 3 years ago

webtamizhan commented 3 years ago

Description:

Unable to reset password, if email column name was other than "email", that i changed in fortify config.

Steps To Reproduce:

in trait CanResetPassword , the function getEmailForPasswordReset() only return column name "email", not with fortify config.

or Is there anything i missed out?

driesvints commented 3 years ago

Overwrite getEmailForPasswordReset on your model with the value you need.