Young and Dangerous 5 ~ 98古惑仔之龍爭虎鬥 ~ (Film) ~ .
Young and Dangerous (1 2 3 4 5) H.k Movie DVD Collection Ekin Cheng English Sub. Young and Dangerous 5 ~ 98古惑仔之龍爭虎鬥 ~ (Film) ~ .
Q:
Handling Lost Password with custom email and password recovery
I am trying to implement a system for generating a custom email and password recovery for my website.
I have configured the user table to allow for a custom email and I have the following class in my config/passwords.php file:
fromEmail = $config->get('email_from');
$this->fromName = $config->get('email_from');
$this->url = $config->get('url');
}
public function resetPassword($user, $token)
{
$user = User::find($user);
if ($user->status == User::STATUS_ACTIVE) {
$this->sendResetLink($user, $token);
}
}
protected function sendResetLink($user, $token)
{
$url = $this->url. "?email=". $user->email;
$link = "". $this->emailBody. "";
Mail::send('emails.password_reset', $link, function($message)
{
$message->from($this->fromEmail, $this->fromName);
});
}
} ac619d1d87
Related links:
Comments