fix email url

This commit is contained in:
Pig Fang 2020-03-29 09:53:24 +08:00
parent 5d9bb28281
commit 1c97734bf6
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ class AuthController extends Controller
false
);
try {
Mail::to($email)->send(new ForgotPassword($url));
Mail::to($email)->send(new ForgotPassword(url($url)));
} catch (\Exception $e) {
report($e);
$dispatcher->dispatch('auth.forgot.failed', [$user, $url]);

View File

@ -188,7 +188,7 @@ class UserController extends Controller
$url = URL::signedRoute('auth.verify', ['uid' => $user->uid], null, false);
try {
Mail::to($user->email)->send(new EmailVerification($url));
Mail::to($user->email)->send(new EmailVerification(url($url)));
} catch (\Exception $e) {
// Write the exception to log
report($e);