@@ -7,27 +7,16 @@ use Illuminate\View\Component;
|
||||
|
||||
class AccountStatus extends Component
|
||||
{
|
||||
public bool
|
||||
$isVerified,
|
||||
$isSuspended,
|
||||
$isLocked,
|
||||
$has2FA,
|
||||
$hasDiscord,
|
||||
$hasPassword;
|
||||
public $user;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($isVerified, $isSuspended, $isLocked, $has2FA, $hasDiscord, $hasPassword)
|
||||
public function __construct($userId)
|
||||
{
|
||||
$this->isVerified = $isVerified;
|
||||
$this->isSuspended = $isSuspended;
|
||||
$this->isLocked = $isLocked;
|
||||
$this->has2FA = $has2FA;
|
||||
$this->hasDiscord = $hasDiscord;
|
||||
$this->hasPassword = $hasPassword;
|
||||
$this->user = User::findOrFail($userId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class ConfirmPassword extends Component
|
||||
{
|
||||
public function render(): View
|
||||
{
|
||||
return view('components.confirm-password');
|
||||
}
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class ConfirmSecondFactor extends Component
|
||||
{
|
||||
public function render(): View
|
||||
{
|
||||
return view('components.confirm-second-factor');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user