Pembatasan Chrome dibatalkan
This commit is contained in:
@@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class UntanSSO
|
||||
@@ -76,10 +77,17 @@ class UntanSSO
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
$user = User::where('email', $ssoData['email'] ?? '')->with('teams')->first();
|
||||
$email = $ssoData['email'] ?? '';
|
||||
$user = $email !== '' ? User::where('email', $email)->with('teams')->first() : null;
|
||||
|
||||
if (! $user) {
|
||||
Log::info('[SSO] email tidak terdaftar: ' . ($ssoData['email'] ?? '-'));
|
||||
Log::info('[SSO] email tidak terdaftar: ' . ($email ?: '-'));
|
||||
|
||||
// now(): hanya untuk request ini, agar peringatan tidak terbawa setelah akun portal diganti
|
||||
if ($email !== '') {
|
||||
Session::now('sso_belum_terdaftar',"Akun email {$email} belum terdaftar sebagai user Verifikator");
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user