fix: if user is invited, that means its email is verified
This commit is contained in:
parent
d7af57a95e
commit
756c7f81ca
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user