Added warning triangle in topbar when 2fa disabled

This commit is contained in:
Frank Schubert
2024-01-31 15:17:26 +01:00
parent bdb155f997
commit 96ac7aae8c
3 changed files with 10 additions and 5 deletions

View File

@@ -26,7 +26,12 @@
<a class="nav-link nav-user mr-0" href="<?=self::getUrl("UserProfile")?>">
<!-- <img src="<?=self::getResourcePath()?>assets/images/users/avatar-4.jpg" alt="user-image" class="rounded-circle"> -->
<!-- <i style="font-size: 24px; border-radius: 50%;" class="fas fa-user-secret text-white img-circle bg-info"></i>-->
<i class="fa-sharp fa-light fa-gear text-white img-circle font-15 "></i>
<?php if(!$me->twofactor): ?>
<i class="fas fa-exclamation-triangle text-warning" title="Zwei-Faktor-Authentifizierung (2FA) nicht aktiviert!"></i>
<?php else: ?>
<i class="fa-sharp fa-light fa-gear text-white img-circle font-15 "></i>
<?php endif; ?>
<span class="pro-user-name ml-1">
<?=$me->username?>
</span>