fix reset password
This commit is contained in:
@@ -7,12 +7,17 @@
|
||||
<?= esc(session()->getFlashdata('error')) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (session()->getFlashdata('success')): ?>
|
||||
<div class="alert alert-success text-center">
|
||||
<?= esc(session()->getFlashdata('success')) ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Form -->
|
||||
<form method="post" action="/processForgotPassword" class="text-start" style="max-width: 600px; margin: 0 auto;">
|
||||
<form method="post" action="<?= site_url('user/forgot_password') ?>" class="text-start" style="max-width: 600px; margin: 0 auto;">
|
||||
<?= csrf_field() ?>
|
||||
<div class="text-center mb-4">
|
||||
<a href="<?= base_url('/') ?>">
|
||||
<a href="<?= site_url('user/forgot_password') ?>">
|
||||
<img src="<?= base_url('assets/images/alrahma_logo.png') ?>" alt=""
|
||||
style="width: 120px; height: 120px; border-radius: 50%; object-fit: contain; background-color: #fff;">
|
||||
</a>
|
||||
@@ -43,7 +48,7 @@
|
||||
|
||||
<div class="text-center">
|
||||
<p class="mb-0">Don't have an account?</p>
|
||||
<a href="/register" class="d-inline-block mt-1">Register now</a>
|
||||
<a href="<?= site_url('register') ?>" class="d-inline-block mt-1">Register now</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<!-- app/Views/user/password_reset_confirmation.php -->
|
||||
<?php if (session()->getFlashdata('show_modal')): ?>
|
||||
<div class="modal fade" id="emailConfirmModal" tabindex="-1" aria-labelledby="emailConfirmLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg">
|
||||
<div class="modal-content rounded-4 shadow border-0" style="max-width: 600px; margin: auto;">
|
||||
@@ -17,11 +18,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (session()->getFlashdata('show_modal')): ?>
|
||||
<script>
|
||||
window.addEventListener('DOMContentLoaded', function() {
|
||||
const modal = new bootstrap.Modal(document.getElementById('emailConfirmModal'));
|
||||
modal.show();
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
window.addEventListener('DOMContentLoaded', function() {
|
||||
const modal = new bootstrap.Modal(document.getElementById('emailConfirmModal'));
|
||||
modal.show();
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user