I'm trying to get laravel's implemented email verification system working (https://laravel.com/docs/8.x/verification).
What i did so far:
Enabled the Feature emailVerification in the file config/fortify.php like so:
... 'features' => [ Features::registration(), Features::resetPasswords(), Features::emailVerification(), Features::updateProfileInformation(), Features::updatePasswords(), Features::twoFactorAuthentication([ 'confirmPassword' => true, ]), ], ...
implemented MustVeriffyEmail in the app/Models/User.php file like so:
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Fortify\TwoFactorAuthenticatable; use Laravel\Jetstream\HasProfilePhoto; use Laravel\Jetstream\HasTeams; use Laravel\Sanctum\HasApiTokens; class User extends Authenticatable implements MustVerifyEmail { use HasApiTokens; use HasFactory; use HasProfilePhoto; use HasTeams; use Notifiable; use TwoFactorAuthenticatable; ...
The result after these changes:
Everything is working just fine for Chrome or Firefox, except for Safari. If I try to click the email verification link which I get per mail it just redirects me to the login page (in a new tab) without any error messages. After logging in again it shows that it didn't work either. My email is now still unverified.
The link in the mail looks something like this:
If I check my database, everything seems fine too, except I don't get any records in the email_verified_at column (which is present).
Maybe someone had the same issue and could help me out here?
Best regards,
Leon