From d5521030a0fd4b1cca05357b1ef0bd26ce1e8f2c Mon Sep 17 00:00:00 2001 From: miguel456 Date: Fri, 21 Oct 2022 08:05:57 +0100 Subject: [PATCH] refactor: badge color change Signed-off-by: miguel456 --- app/Http/Controllers/UserController.php | 2 +- resources/views/components/account-status.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index b117dfb..137a8d3 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -360,7 +360,7 @@ class UserController extends Controller $this->authorize('adminEdit', $user); - if (!$user->hasPassword()) { + if ($user->hasPassword()) { $user->notify(new PasswordAdminResetNotification()); $user->password = null; diff --git a/resources/views/components/account-status.blade.php b/resources/views/components/account-status.blade.php index a36ea7c..fd32235 100755 --- a/resources/views/components/account-status.blade.php +++ b/resources/views/components/account-status.blade.php @@ -22,7 +22,7 @@ @elseif($hasDiscord) {{ __('Passwordless signin') }} @else - {{ __('No password') }} + {{ __('No password') }} @endif @if($hasDiscord)