a
This commit is contained in:
parent
6182e8a084
commit
d99c2d6247
|
|
@ -308,9 +308,10 @@ class Beneficiaire extends Modele {
|
||||||
$photo = "";
|
$photo = "";
|
||||||
$_SESSION['photoAssureCrypte'] = "";
|
$_SESSION['photoAssureCrypte'] = "";
|
||||||
|
|
||||||
if ($_SESSION['lienPhoto_C']>" ")
|
if ($_SESSION['faceRegistered_C'] == "1" && $_SESSION['lienPhoto_C']>" ")
|
||||||
{
|
{
|
||||||
$photo = $_SESSION['lienPhotoFace'].$_SESSION['lienPhoto_C'];
|
$photo = $_SESSION['lienPhotoFace'].$_SESSION['lienPhoto_C'];
|
||||||
|
/*
|
||||||
if(!file_exists($photo))
|
if(!file_exists($photo))
|
||||||
{
|
{
|
||||||
$_SESSION['lienPhoto_C'] = "";
|
$_SESSION['lienPhoto_C'] = "";
|
||||||
|
|
@ -319,6 +320,9 @@ class Beneficiaire extends Modele {
|
||||||
{
|
{
|
||||||
$_SESSION['photoAssureCrypte'] = decryptImage($photo);
|
$_SESSION['photoAssureCrypte'] = decryptImage($photo);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
$_SESSION['photoAssureCrypte'] = $photo;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,8 @@
|
||||||
$fingerActif = '0';
|
$fingerActif = '0';
|
||||||
$faceActif = '0';
|
$faceActif = '0';
|
||||||
|
|
||||||
$imgData = $_SESSION['photoAssureCrypte'];
|
// $imgData = $_SESSION['photoAssureCrypte'];
|
||||||
|
$photoAssureCrypte = $_SESSION['photoAssureCrypte'];
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
@ -159,7 +160,8 @@
|
||||||
<!-- Photo -->
|
<!-- Photo -->
|
||||||
<div class="col-12 col-md-3 text-center mb-4">
|
<div class="col-12 col-md-3 text-center mb-4">
|
||||||
<?php if ($beneficiaire['faceRegistered']=="1"): ?>
|
<?php if ($beneficiaire['faceRegistered']=="1"): ?>
|
||||||
<img src="data:image/jpg;base64,<?=$imgData?>"
|
<img
|
||||||
|
src="<?=$photoAssureCrypte?>"
|
||||||
class="img-fluid rounded-circle shadow"
|
class="img-fluid rounded-circle shadow"
|
||||||
style="width: 120px; height: 120px; object-fit: cover; cursor:pointer;"
|
style="width: 120px; height: 120px; object-fit: cover; cursor:pointer;"
|
||||||
data-bs-toggle="modal"
|
data-bs-toggle="modal"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user