mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 11:47:53 +02:00
Ensure LogoLib loading while no user is authenticated
This commit is contained in:
parent
c4acd572f8
commit
8a50b3c087
@ -19,7 +19,11 @@ class IconService
|
||||
*/
|
||||
public function buildFromOfficialLogo(?string $service) : ?string
|
||||
{
|
||||
return LogoLib::driver(Auth::user()->preferences['iconCollection'])->getIcon($service);
|
||||
$iconCollection = Auth::user()
|
||||
? Auth::user()->preferences['iconCollection']
|
||||
: config('2fauth.preferences.iconCollection');
|
||||
|
||||
return LogoLib::driver($iconCollection)->getIcon($service);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user