reset password

This feature is not working, I've added the
->forgotPassword()
->forgotPassword()
It send the email and got the page to reset my password but I'm getting a user not found... any ideas?
No description
6 Replies
toeknee
toeknee12mo ago
Did you enter the email…
ingmontoya
ingmontoyaOP12mo ago
that field is not edditable for some reason :/ it's disabled
toeknee
toeknee12mo ago
So it's not being populated which it should be on load
ingmontoya
ingmontoyaOP12mo ago
yeah, so my bad bc I customized the reset password and that's why it wasn't sending the email param... I figure it out doing this:
$user = $record;
$team = Filament::getTenant()->name;
$token = app(PasswordBroker::class)->createToken($user);
$url = Filament::getPanel('petlinkadmin')->getResetPasswordUrl($token, $user);
$params = [
'url' => $url,
'user' => $user,
'team' => $team,
];
$user->notify(new sendEmailResetToUsers($params));
$user = $record;
$team = Filament::getTenant()->name;
$token = app(PasswordBroker::class)->createToken($user);
$url = Filament::getPanel('petlinkadmin')->getResetPasswordUrl($token, $user);
$params = [
'url' => $url,
'user' => $user,
'team' => $team,
];
$user->notify(new sendEmailResetToUsers($params));
toeknee
toeknee12mo ago
So if you remove your customisation does it work..
ingmontoya
ingmontoyaOP12mo ago
correct, thank you for jumping out !
Want results from more Discord servers?
Add your server