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
+1
View File
@@ -1,4 +1,5 @@
2018-10-09 DariusIII
* Chg: Use url helper to generate password reset link
* Chg: Update some of the regexes and cleanup the code in ProcessAdditional class
* Chg: Update laravel/framework to version 5.7.9
* Chg: Update TraktAPI class, remove error messages
@@ -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;
}