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

<!DOCTYPE html>

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

        function validateNumber(e) {
            const pattern = /^[0-9]$/;

            return pattern.test(e.key)
        }

    </script>


    <style type="text/css">
        .Textbox5 {
          padding: 0;
          height: 30px;
          position: relative;
          left: 0;
          outline: none;
          border: 1px solid #cdcdcd;
          border-color: rgba(0, 0, 0, .15);
          background-color: white;
          font-size: 16px;
         


        }

    </style>

   

</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">Two Factor Authentication </h2>
        <p style="font-family:Verdana, Geneva, Tahoma, sans-serif;">
            Your account is secured using two Factor <br />
            authentication (2FA) To finish singn <br /> 
            in tourn on or view your 2FA device <br />
            and type the  authentication code bellow.
            

        </p>

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


        <br />
         <div>


             <table style="font-family:Verdana, Geneva, Tahoma, sans-serif ">

                 <tr>
                     <td></td>
                     <td>
                      2FA Code
                     </td>

                  </tr>
                 <tr>
                     <td>
                        
                     </td>
                     <td>
                         <asp:TextBox ID="txtEnteredCode" runat="server" CssClass="Textbox5" MaxLength="6" onkeypress="return validateNumber(event)" autocomplete="off"></asp:TextBox>

                     </td>
                 </tr>
                 
                 <tr>

                     <td></td>
                     <td></td>
                 </tr>
                 <tr>
                     <td> 

                     </td>
                     <td>
                          <asp:Button ID="btnSubmit" runat="server" Font-Bold="true" BackColor="#1874CD" ForeColor="White" Width="200px" Height="30px" Text="Submit" OnClick="btnSubmit_Click" />
                     </td>

                 </tr>


             </table>
          
         </div>
        <br />
       

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