a
This commit is contained in:
parent
ae57e00e24
commit
aa2d4a0cdd
|
|
@ -186,7 +186,7 @@
|
||||||
$_SESSION['codeEntite'] = base64_decode($_GET['codeEntite']);
|
$_SESSION['codeEntite'] = base64_decode($_GET['codeEntite']);
|
||||||
$_SESSION['codePrestataire'] = base64_decode($_GET['codePrestataire']);
|
$_SESSION['codePrestataire'] = base64_decode($_GET['codePrestataire']);
|
||||||
$_SESSION['idBeneficiaire'] = base64_decode($_GET['idBeneficiaire']);
|
$_SESSION['idBeneficiaire'] = base64_decode($_GET['idBeneficiaire']);
|
||||||
$_SESSION['idDemande'] = base64_decode($_GET['idDemande']);
|
// $_SESSION['idDemande'] = base64_decode($_GET['idDemande']);
|
||||||
|
|
||||||
$codeSociete = $_SESSION['codeEntite'];
|
$codeSociete = $_SESSION['codeEntite'];
|
||||||
$idBeneficiaire = $_SESSION['idBeneficiaire'];
|
$idBeneficiaire = $_SESSION['idBeneficiaire'];
|
||||||
|
|
@ -685,23 +685,23 @@
|
||||||
<div id="camera-status" class="status info">
|
<div id="camera-status" class="status info">
|
||||||
<?= t('position_face', $lang, $translations) ?>
|
<?= t('position_face', $lang, $translations) ?>
|
||||||
</div>
|
</div>
|
||||||
<button class="button capture" onclick="capturePhoto()">📷 Prendre la photo</button>
|
<button class="button capture" onclick="capturePhoto()">📷 <?= t('take_photo', $lang, $translations) ?> </button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Étape 4: Confirmation -->
|
<!-- Étape 4: Confirmation -->
|
||||||
<div id="step-confirm" class="step">
|
<div id="step-confirm" class="step">
|
||||||
<h3 style="color: #2c3e50; margin-bottom: 15px;">Confirmez votre photo</h3>
|
<h3 style="color: #2c3e50; margin-bottom: 15px;"> <?= t('confirm_photo', $lang, $translations) ?> </h3>
|
||||||
<img id="preview" class="preview-image" alt="Votre photo">
|
<img id="preview" class="preview-image" alt="Votre photo">
|
||||||
<button class="button" onclick="verifyPhoto()">✓ Confirmer et vérifier</button>
|
<button class="button" onclick="verifyPhoto()">✓ <?= t('confirm_verify', $lang, $translations) ?> </button>
|
||||||
<button class="button retry" onclick="retakePhoto()">↻ Reprendre la photo</button>
|
<button class="button retry" onclick="retakePhoto()">↻ <?= t('retake_photo', $lang, $translations) ?> </button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Étape 5: Vérification en cours -->
|
<!-- Étape 5: Vérification en cours -->
|
||||||
<div id="step-verifying" class="step">
|
<div id="step-verifying" class="step">
|
||||||
<div class="loader"></div>
|
<div class="loader"></div>
|
||||||
<p style="text-align: center; color: #7f8c8d; margin-top: 20px;">
|
<p style="text-align: center; color: #7f8c8d; margin-top: 20px;">
|
||||||
Vérification de votre identité en cours...<br>
|
<?= t('verification_processing', $lang, $translations) ?> <br>
|
||||||
<small>Merci de patienter</small>
|
<small> <?= t('please_wait', $lang, $translations) ?> </small>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -740,11 +740,13 @@
|
||||||
// verificationToken = urlParams.get('token');
|
// verificationToken = urlParams.get('token');
|
||||||
|
|
||||||
verificationToken = <?= $_SESSION['idDemande'] ?> ;
|
verificationToken = <?= $_SESSION['idDemande'] ?> ;
|
||||||
|
v_msg = "<?= t('invalid_link', $lang, $translations) ?>";
|
||||||
|
|
||||||
// Initialisation
|
// Initialisation
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
if (!verificationToken) {
|
if (!verificationToken) {
|
||||||
showError('Lien de vérification invalide');
|
// showError('Lien de vérification invalide');
|
||||||
|
showError(v_msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user