diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index a2978e2ee..7c1d186ff 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -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');