Use url helper to generate password reset link

This commit is contained in:
DariusIII
2018-10-09 22:58:32 +02:00
parent d257573ef1
commit c3adab1b68
2 changed files with 2 additions and 1 deletions
@@ -69,7 +69,7 @@ class ForgotPasswordController extends Controller
//
// Send the email
//
$resetLink = $request->server('SERVER_NAME').'/resetpassword?guid='.$guid;
$resetLink = url('/').'/resetpassword?guid='.$guid;
Mail::to($ret['email'])->send(new ForgottenPassword($resetLink));
$sent = true;
}