<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Showauthentication.aspx.cs" Inherits="SUNWEB.Showauthentication" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">

        function checkNumber(evt) {
            evt = (evt) ? evt : window.event
            var charCode = (evt.which) ? evt.which : evt.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57)) {
                status = "This field accepts numbers only."
                return false
            }
            status = ""
            return true
        }

    </script>


</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
    <div class="text-center">
        <br />
        <h2 style="font-family:Verdana, Geneva, Tahoma, sans-serif" class="text-info">2FA Security</h2>
        <p style="font-family:Verdana, Geneva, Tahoma, sans-serif" class="mb-4">Enter 6-digits code from the authenticatior app.</p>

        <div>
            <asp:Image id="imgqrcode" runat="server" width="250" height="250" />
        </div>
        <div style="font-family:Verdana, Geneva, Tahoma, sans-serif"> 
            Manual Setup Code : <asp:Label ID="lblSetupCode" runat="server"></asp:Label>
        </div>


        <br />
         <div>
         <asp:TextBox ID="txtEnteredCode" runat="server" MaxLength="6" onkeypress="return checkNumber(event,this)" autocomplete="off"></asp:TextBox>
         </div>
        <br />
        <div>
        <asp:Button ID="btnSubmit" runat="server" BackColor="Green" ForeColor="White" Width="175px" Height="30px" Text="Submit" OnClick="btnSubmit_Click" />
        </div>

    </div>
</div>
    </form>
</body>
</html>
