DONE: fix error where the verification uses localhost after user register, use malay name in membership application (#16)
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local> Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
@@ -38,6 +38,14 @@ class VerifyEmailNotification extends Notification
|
||||
protected function verificationUrl(User $notifiable): string
|
||||
{
|
||||
$expireMinutes = (int) config('auth.verification.expire_minutes', 60);
|
||||
$root = rtrim((string) config('app.url'), '/');
|
||||
|
||||
// Prefer APP_URL over the current request host so queued/local proxy
|
||||
// contexts do not embed http://localhost in production emails.
|
||||
URL::forceRootUrl($root);
|
||||
if ($scheme = parse_url($root, PHP_URL_SCHEME)) {
|
||||
URL::forceScheme($scheme);
|
||||
}
|
||||
|
||||
return URL::temporarySignedRoute(
|
||||
'verification.verify',
|
||||
|
||||
Reference in New Issue
Block a user