You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
2.5 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OTP Verification</title>
<!-- Bootstrap CSS -->
<link href="<?= auto_version(styles_bundle() . "frontoffice/bootstrap.min.css") ?>" rel="stylesheet"/>
<link href="<?= auto_version(styles_bundle() . "otp/otp_verification.css") ?>" rel="stylesheet"/> <!-- Ajout du CSS séparé -->
<script src="<?= auto_version(app_bundle() . "otp_notify/otp_notify.js") ?>"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/notify/0.4.2/notify.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">
</head>
<!-- Passer les données de session flash à JavaScript -->
<script>
window.sessionFlashData = {
success: "<?= $this->session->flashdata('success'); ?>",
error: "<?= $this->session->flashdata('error'); ?>"
};
</script>
<body>
<div class="otp-container">
<h3>Please enter the One-Time Password to verify your account</h3>
<?php if ($this->session->userdata('otp')): ?>
<p>A One-Time Password has been sent to your registered mobile number.</p>
<?php else: ?>
<p>No OTP found in session. Please <a href="<?= site_url('otpVerify/generate_otp'); ?>">generate a new One-Time Password</a>.</p>
<?php endif; ?>
<div>
<form method="post" id="otp-form">
<?php echo form_open('payement/otpVerify/verify_otp'); ?>
<input type="number" name="otp[]" class="otp-input" maxlength="1" required>
<input type="number" name="otp[]" class="otp-input" maxlength="1" required>
<input type="number" name="otp[]" class="otp-input" maxlength="1" required>
<input type="number" name="otp[]" class="otp-input" maxlength="1" required>
<input type="number" name="otp[]" class="otp-input" maxlength="1" required>
<input type="number" name="otp[]" class="otp-input" maxlength="1" required>
</form>
</div>
<button class="btn btn-validate" onclick="submitOtpForm()">Valider</button>
<a href="<?= site_url('payement/otpVerify/generate_otp'); ?>" class="resend-link">Resend One-Time Password</a>
</div>
</body>
</html>