

<?php
// declare(strict_types=1);
require 'vendor/autoload.php';
$secret = 'MTQ2UIGO75XRUKJL';
$link = \Sonata\GoogleAuthenticator\GoogleQrUrl::generate('CRMREE', $secret, 'tmplatinum');

$secret2 = 'MTQ2UIGO75XRUKJK';
$link2 = \Sonata\GoogleAuthenticator\GoogleQrUrl::generate('CRMUNTUNGG', $secret, 'tmplatinum');
?>



<?php $this->load->view('v_header'); ?>
<?php $this->load->view('v_header_login'); ?>

<div class="login-box">
  <div class="login-logo">
    <b>WidelyDefined</b>
  </div>
  <!-- /.login-logo -->
  <div class="card">
    <div class="card-body login-card-body">
      <p class="login-box-msg">Sign in to start your session</p>

      <?php
        $err_email=form_error('checkemail');
        $err_password = form_error('checkpassword');
        echo $err_email;
        echo $err_password;
        $message = $this->session->flashdata('message');
        echo $message;
      ?>

      <form action="<?php echo base_url();?>c_login/validatelogin" method="post">

        <div class="input-group mb-3">
          <input type="text" name="checkemail" id="e-mail" class="form-control format" value="" placeholder="Email">
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-envelope"></span>
            </div>
          </div>
        </div>
        <div class="input-group mb-3">
          <input type="password" name="checkpassword" id="pass" value="" class="form-control format" placeholder="Password">
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-lock"></span>
            </div>
          </div>
        </div>
        

        <div class="row">
          <div class="col-8">
            <div class="icheck-primary">
              <input type="checkbox" id="remember">
              <label for="remember">
                  
                Remember Me
              </label>
            </div>
          </div>
          <!-- /.col -->
          <div class="col-4">
            <button type="submit" name = "submit" class="btn btn-primary btn-block">Sign In</button>
          </div>
          <!-- /.col -->
        </div>
      </form>



    </div>
    <!-- /.login-card-body -->
  </div>
</div>


<?php $this->load->view('v_footer_login'); ?>
<?php $this->load->view('v_footer'); ?>
