TOTP : improve email and fix small bug

This commit is contained in:
sparkyx 2025-08-05 11:56:36 +02:00
parent 4d0325438b
commit 645bc207e1
9 changed files with 49 additions and 27 deletions

View file

@ -172,6 +172,12 @@ else if ($sbaction == "delete")
}
if ( $code != $ctl_code) {
echo_warning (_("Code invalide, effacement refusé"));
require_once NOALYSS_INCLUDE.'/user_detail.inc.php';
return;
}
if ($uid == 1) {
echo_warning(_("Administrateur ne peut pas être effacé"));
require_once NOALYSS_INCLUDE.'/user_detail.inc.php';
return;
}
$cn = new Database();
@ -301,7 +307,7 @@ if ( !empty ($a_user) )
echo '<th>'.$header->get_header(2).'</th>';
echo '<th>'.$header->get_header(4).'</th>';
echo "<th>"._('Type')."</th>";
echo '<th>'.$header->get_header(2).'</th>';
echo '<th>'.$header->get_header(3).'</th>';
echo '</tr>';
$a_auth=[0=>_("Mot de passe"),1=>'Email et OTP',2=>'OTP'];