fix: if user is invited, that means its email is verified

This commit is contained in:
Andras Bacsai 2023-10-26 13:00:40 +02:00
parent d7af57a95e
commit 756c7f81ca

View File

@ -39,6 +39,10 @@ public function link()
} else {
$team = $user->teams()->first();
}
if (is_null(data_get($user, 'email_verified_at'))){
$user->email_verified_at = now();
$user->save();
}
Auth::login($user);
session(['currentTeam' => $team]);
return redirect()->route('dashboard');