This commit is contained in:
KANE LAZENI 2025-12-19 20:24:59 +00:00
parent 6182e8a084
commit d99c2d6247
2 changed files with 9 additions and 3 deletions

View File

@ -308,9 +308,10 @@ class Beneficiaire extends Modele {
$photo = "";
$_SESSION['photoAssureCrypte'] = "";
if ($_SESSION['lienPhoto_C']>" ")
if ($_SESSION['faceRegistered_C'] == "1" && $_SESSION['lienPhoto_C']>" ")
{
$photo = $_SESSION['lienPhotoFace'].$_SESSION['lienPhoto_C'];
/*
if(!file_exists($photo))
{
$_SESSION['lienPhoto_C'] = "";
@ -319,6 +320,9 @@ class Beneficiaire extends Modele {
{
$_SESSION['photoAssureCrypte'] = decryptImage($photo);
}
*/
$_SESSION['photoAssureCrypte'] = $photo;
}
return true;

View File

@ -52,7 +52,8 @@
$fingerActif = '0';
$faceActif = '0';
$imgData = $_SESSION['photoAssureCrypte'];
// $imgData = $_SESSION['photoAssureCrypte'];
$photoAssureCrypte = $_SESSION['photoAssureCrypte'];
?>
<style>
@ -159,7 +160,8 @@
<!-- Photo -->
<div class="col-12 col-md-3 text-center mb-4">
<?php if ($beneficiaire['faceRegistered']=="1"): ?>
<img src="data:image/jpg;base64,<?=$imgData?>"
<img
src="<?=$photoAssureCrypte?>"
class="img-fluid rounded-circle shadow"
style="width: 120px; height: 120px; object-fit: cover; cursor:pointer;"
data-bs-toggle="modal"