refactor: expanded AccountStatus data
This commit is contained in:
@@ -7,16 +7,25 @@ use Illuminate\View\Component;
|
||||
|
||||
class AccountStatus extends Component
|
||||
{
|
||||
public $user;
|
||||
public bool $isVerified;
|
||||
|
||||
public bool $isSuspended;
|
||||
|
||||
public bool $isLocked;
|
||||
|
||||
public bool $has2FA;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($userId)
|
||||
public function __construct($isVerified, $isSuspended, $isLocked, $has2FA)
|
||||
{
|
||||
$this->user = User::findOrFail($userId);
|
||||
$this->isVerified = $isVerified;
|
||||
$this->isSuspended = $isSuspended;
|
||||
$this->isLocked = $isLocked;
|
||||
$this->has2FA = $has2FA;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user