User Model 里面的 sendPasswordResetNotification ( ) 在什么时候调用?
-
邮件发送重置密码的URL链接(带token)的动作是在哪一步执行的?
根据路由, 是在 Auth\ForgotPasswordController@sendResetLinkEmail 这里执行, 但具体是怎么实现的? 虽然是Laravel早已编写好, 但实在不太理解, 是怎么生成token? 然后又是怎么把带上token的URL发送邮件出去? -
User Model 里面的 sendPasswordResetNotification( ) 在什么时候调用?
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPassword($token));
}
求大神解答~十分感谢~
推荐文章: