pin.jsp kiashop avatar
a month ago
5.2 kB
    Document   : pin.jsp
    Created on : Jan 22, 2024, 2:11:21 PM
    Author     : MSI GTX

<link href="//" rel="stylesheet" id="bootstrap-css">
<script src="//"></script>
<script src="//"></script>
<!DOCTYPE html>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <link rel="stylesheet" href="" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
        <link rel="stylesheet" href="" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
        <link href="css/login.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="">
        <link rel="stylesheet" href="">
        <link rel="stylesheet" href=",wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />

        <title>KiA Shop - Be good, Be bad, Be yourself | Login</title>
            .error {
                color: #fff;
                font-size: 16px;
                display: block;
                margin-top: 5px;
        <!-- Favicon  -->
        <link rel="icon" href="img/core-img/favicon2.ico">
        <div class="wel">
            <h1>Welcome to KiA Shop</h1>
            <p>Be good, Be bad, Be yourself</p>
        <div id="logreg-forms">
            <form action="pin" method="post" class="form-signup" id="formforgot"style="display: block;" >
                <h1 class="h3 mb-3 font-weight-normal" style="text-align: center"> Confirm Pin</h1>
                <input name="pin" type="text" id="pin" class="form-control" placeholder="Pin">
                <span class="error" id="pin-error"></span>
                <button class="btn btn-warning btn-block" name="btnpin" id="btnpin" value="Pin" type="submit"> Submit</button>



        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
            $(document).ready(function () {
                $("#btnpin").click(function (event) {
                    event.preventDefault(); // Prevent form submission

            function performAjaxRequestForgot() {
                var pin = $("#pin").val().trim();
                var hasErrorse = false;

                // Check if email is empty or missing '@'
                if (pin === "") {
                    $("#pin-error").text("Please enter a valid pin.").css("color", "red");
                    hasErrorse = true;
                } else {

                // If there is an error, stop further processing
                if (hasErrorse) {

                    type: "POST",
                    url: "pin",
                    data: {btnpin: "Pin", pin: pin},
                    success: function (response) {
                        if (response === "SUCCESS") {
                            window.location.href = 'login'; // Change this to the desired URL

                        } else {
                            // Display SweetAlert for failure
                                title: 'Wrong Pin',
                                text: 'Email does not exist, please check your email again.',
                                icon: 'error',
                                confirmButtonText: 'OK'
                    error: function () {
                        // Display SweetAlert for error
                            title: 'System Error',
                            text: 'The system is failing',
                            icon: 'error',
                            confirmButtonText: 'OK'

Leave a Comment