refactor: badge color change

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
Miguel Nogueira 2022-10-21 08:05:57 +01:00
parent 830c15e6ee
commit d5521030a0
No known key found for this signature in database
GPG Key ID: 3C6A7E29AF26D370
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -22,7 +22,7 @@
@elseif($hasDiscord)
<span class="badge badge-info ml-2"><i class="fas fa-passport"></i> {{ __('Passwordless signin') }}</span>
@else
<span class="badge badge-info ml-2"><i class="fas fa-times"></i> {{ __('No password') }}</span>
<span class="badge badge-danger ml-2"><i class="fas fa-times"></i> {{ __('No password') }}</span>
@endif
@if($hasDiscord)