Added 2fa warning in UserProfile

This commit is contained in:
Frank Schubert
2024-01-30 19:39:13 +01:00
parent a6c17d4882
commit d054facc8f
2 changed files with 19 additions and 0 deletions

View File

@@ -130,6 +130,9 @@ if ($userprofile->twofactor == 0) {
<div class="w-100 border-bottom"></div>
<h4 class="form-group mb-2 mt-3">2FA</h4>
<?php if (!$verification || $verification == 0): ?>
<?php if(!$userprofile->twofactor): ?>
<div class="alert alert-danger"><i class="fas fa-exclamation-circle"></i> Derzeit ist keine Methode für die Zwei-Faktor-Authentifizerung aktiviert. Bitte aktivieren Sie eine Zwei-Faktor-Authentifizerungsmethode!</div>
<?php endif; ?>
<form class="form-horizontal" method="post"
action="<?= self::getUrl("UserProfile", $twoFactorFormaction) ?>">
<div class="form-group row">