mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 19:57:44 +02:00
Log twofaccount deletion
This commit is contained in:
parent
75860686f7
commit
f2716782f7
@ -6,6 +6,7 @@ use App\Models\TwoFAccount;
|
|||||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||||
use Illuminate\Foundation\Events\Dispatchable;
|
use Illuminate\Foundation\Events\Dispatchable;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
class TwoFAccountDeleted
|
class TwoFAccountDeleted
|
||||||
{
|
{
|
||||||
@ -22,5 +23,6 @@ class TwoFAccountDeleted
|
|||||||
public function __construct(TwoFAccount $twofaccount)
|
public function __construct(TwoFAccount $twofaccount)
|
||||||
{
|
{
|
||||||
$this->twofaccount = $twofaccount;
|
$this->twofaccount = $twofaccount;
|
||||||
|
Log::info(sprintf('TwoFAccount #%s deleted', $twofaccount->id));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -221,6 +221,7 @@ class TwoFAccountService
|
|||||||
// $ids as string could be a comma-separated list of ids
|
// $ids as string could be a comma-separated list of ids
|
||||||
// so in this case we explode the string to an array
|
// so in this case we explode the string to an array
|
||||||
$ids = $this->commaSeparatedToArray($ids);
|
$ids = $this->commaSeparatedToArray($ids);
|
||||||
|
Log::info(sprintf('Deletion of TwoFAccounts #%s requested', implode(',#', $ids)));
|
||||||
$deleted = TwoFAccount::destroy($ids);
|
$deleted = TwoFAccount::destroy($ids);
|
||||||
|
|
||||||
return $deleted;
|
return $deleted;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user