mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-14 07:48:37 +02:00
Refactore and fix for icon management
This commit is contained in:
@ -108,7 +108,7 @@ class TwoFAccountController extends Controller
|
||||
public function destroy(TwoFAccount $twofaccount)
|
||||
{
|
||||
// delete icon
|
||||
$storedIcon = 'public/' . pathinfo($twofaccount->icon)['basename'];
|
||||
$storedIcon = 'public/icons/' . $twofaccount->icon;
|
||||
|
||||
if( Storage::exists($storedIcon) ) {
|
||||
Storage::delete($storedIcon);
|
||||
|
Reference in New Issue
Block a user