<?php

$pageName  = "Change Password";
include($_SERVER['DOCUMENT_ROOT'] . "/account/layout/header2.php");

// Ofofonobs Developer WhatsAPP +2348114313795


// Bank Script Developer - Use For Educational Purpose Only

// Other scripts Available

// if (!$_SESSION['acct_email']) {
//     header("location:../login.php");
//     die;
// }


?>






<div class="dialog-xm auth-ac-dlg" style="display: none;">
    <div class="dialog-content-xm dark-bg2 fit-content p-3 px-4" style="border-radius: 0px;">
        <div class="loader">
            <span class="bar"></span>
            <span class="bar"></span>
            <span class="bar"></span>
        </div>
    </div>
</div>


<div class="container-fluid h-100 awrp anuphan">
    <div class="continer">
        <a href="./security.php">
            <p class="fit-content grey-color-3 mb-5 mt-4 pointer">
                <i class="material-icons grey-color-3 top-6" style="font-size: 22px !important;">keyboard_arrow_left</i>
                <b>Security</b>
            </p>
        </a>
    </div>
    <form class="bg-sm-none px-lg-10 mt-5 p-0 mx-auto shadow-none anuphan post-form mx-auto border-none" method="POST" id="changePasswordForm">
        <input type="hidden" name="csrfmiddlewaretoken" value="iDOCtK39JnwtMjHIz9O1UWetwmkXfCRm6BRIjxbUYwrDSTKzDULhWMHoGUurU4rg">
        <h3 class="anuphan-3 text-center mt-4">
            Change Password
        </h3>
        <p class="m-0 xsmall grey-color-2 mb-1 mt-5">Old Password</p>
        <div class="form-wrapper m-0">
            <input type="password" name="cPassword" id="id_password" class="has-icon" autocomplete="new-password" required placeholder="Please enter the old password">
        </div>
        <p class="m-0 xsmall grey-color-2 mb-1 mt-4">New Password</p>
        <div class="form-wrapper m-0">
            <input type="password" name="newPassword" class="has-icon" autocomplete="new-password" required placeholder="Please enter the new password">
        </div>
        <p class="m-0 xsmall grey-color-2 mb-1 mt-4">Confirm New Password</p>
        <div class="form-wrapper m-0">
            <input type="password" name="cnewPassword" class="has-icon" autocomplete="new-password" required placeholder="Please confirm the password again">
        </div>

        <button class="bold-text mt-4 anuphan-2">
            Confirm
        </button>
    </form>
</div>


<script>
    $('#changePasswordForm').on('submit', (e) => {
        e.preventDefault();
        $('.activity-loader').show();

        setTimeout(() => {
            $('#changePasswordForm').unbind('submit').submit();
        }, 2000)
    })
</script>


</div>











<?php
include($_SERVER['DOCUMENT_ROOT'] . "/account/layout/footer2.php");

?>