New answers tagged

1

In case someone is still having issues. setPasswordPath is actually expecting a template path and not a route. 'setPasswordPath' => 'myauth/set-password' I have a file that lives in here: MyCraftProjectFolder > templates > myauth > set-password.twig Some may get confused because of the name "Path" at the end of setPasswordPath as many other ...


0

Given a list of elements/User that you want to get the password reset URL for, you can loop through them and call this for each one: $url = Craft::$app->getUsers()->getPasswordResetUrl($user)'


Top 50 recent answers are included