Signiere Bestätigung und Ausgaben über den Pfad, damit der Port die Links nicht ungültig macht.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2113378e81
commit
63f2be565f
8 files changed
+69
-10
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use App\Http\SignedLink;
|
||||
use Illuminate\Auth\Notifications\VerifyEmail;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
|
||||
class VerifyEmailAddress extends VerifyEmail
|
||||
{
|
||||
protected function verificationUrl($notifiable): string
|
||||
{
|
||||
return SignedLink::temporary(
|
||||
'verification.verify',
|
||||
Carbon::now()->addMinutes((int) Config::get('auth.verification.expire', 60)),
|
||||
[
|
||||
'id' => $notifiable->getKey(),
|
||||
'hash' => sha1($notifiable->getEmailForVerification()),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user