diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 3944609..b117dfb 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -183,6 +183,7 @@ class UserController extends Controller 'isLocked' => $suspensionService->isLocked($user), 'isSuspended' => $suspensionService->isSuspended($user), 'hasDiscord' => $user->hasDiscordConnection(), + 'hasPassword' => $user->hasPassword(), 'suspensionReason' => $suspensionService->getSuspensionReason($user), 'suspensionDuration' => $suspensionService->getSuspensionDuration($user), 'has2FA' => $user->has2FA(), diff --git a/app/View/Components/AccountStatus.php b/app/View/Components/AccountStatus.php index 648834d..1180ce6 100755 --- a/app/View/Components/AccountStatus.php +++ b/app/View/Components/AccountStatus.php @@ -12,20 +12,22 @@ class AccountStatus extends Component $isSuspended, $isLocked, $has2FA, - $hasDiscord; + $hasDiscord, + $hasPassword; /** * Create a new component instance. * * @return void */ - public function __construct($isVerified, $isSuspended, $isLocked, $has2FA, $hasDiscord) + public function __construct($isVerified, $isSuspended, $isLocked, $has2FA, $hasDiscord, $hasPassword) { $this->isVerified = $isVerified; $this->isSuspended = $isSuspended; $this->isLocked = $isLocked; $this->has2FA = $has2FA; $this->hasDiscord = $hasDiscord; + $this->hasPassword = $hasPassword; } /** diff --git a/resources/views/components/account-status.blade.php b/resources/views/components/account-status.blade.php index a9cff59..141341a 100755 --- a/resources/views/components/account-status.blade.php +++ b/resources/views/components/account-status.blade.php @@ -17,6 +17,12 @@ {{ __('Unverified Email') }} @endif + @if($hasPassword) + {{ __('Uses password') }} + @else + {{ __('Passwordless signin') }} + @endif + @if($hasDiscord) {{ __('Connected to Discord') }} @else diff --git a/resources/views/dashboard/user/manage.blade.php b/resources/views/dashboard/user/manage.blade.php index 1313efe..0b8dde8 100755 --- a/resources/views/dashboard/user/manage.blade.php +++ b/resources/views/dashboard/user/manage.blade.php @@ -276,7 +276,7 @@
- +
@if($user->hasDiscordConnection())