You need to sign in or sign up before continuing.
Newer
Older
<?php
print($fingerprint);
if(isset($_POST['password']) and isset($_POST['Username'])) {
//$fingerprint = $_POST['fingerprint'];
// setcookie('fingerprint', $fingerprint);
$password = $_POST['password'];
$user = $_POST['Username'];
$result = user::login($user, $password);
$login = true;
}?>
<?php
if($login) {
if($result) {?>
<div class="my-5">
<div class="p-5 text-center bg-body-tertiary">
<div class="container py-5">
<h1 class="text-body-emphasis">login Success</h1>
<p class="col-lg-8 mx-auto lead">
<p>Hello
<?print($email)?> hope you're doing good
</p>
href="<?php get_config("base_path")?>App/index.php">Continue</a>
</p>
</div>
</div>
</div>

V Harish Ragavendher
committed
<?php } else {?>
<div class="my-5">
<div class="p-5 text-center bg-body-tertiary">
<div class="container py-5">
<h1 class="text-body-emphasis">Oops incorrect username or password</h1>
<p class="col-lg-8 mx-auto lead">
href="<?php get_config("base_path")?>App/login_page.php">tryagain</a>
</p>
</div>
</div>
</div>

V Harish Ragavendher
committed
<?php }
} else {?>
<main class="form-signin w-100 m-auto">
<form method="post" action="login_page.php">

V Harish Ragavendher
committed
<img class="mb-4"
src="<?php get_config("base_path")?>App/assets/logo.png"
alt="poke img" width="300" height="150">
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>
<div class="form-floating">
<input name="Username" type="Username" class="form-control" id="floatingInput" placeholder="Username"
width="40" height="60">
<label for="floatingInput">Username</label>
</div>
<div class="form-floating">
<input name="password" type="password" class="form-control" id="floatingPassword" placeholder="password"
width="40" height="60">
<label for="floatingPassword">Password</label>
</div>
<input name="fingerprint" type="hidden" class="form-control" id="fingerprint">
<!--to add fingerprint from fingrptint.js-->
<div class="form-check text-start my-3">
<input class="form-check-input" type="checkbox" value="remember-me" id="flexCheckDefault">
<label class="form-check-label" for="flexCheckDefault">
Remember me
</label>
</div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/hover.css/2.3.1/css/hover-min.css"
integrity="sha512-csw0Ma4oXCAgd/d4nTcpoEoz4nYvvnk21a8VA2h2dzhPAvjbUIK6V3si7/g/HehwdunqqW18RwCJKpD7rL67Xg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<button class="btn btn-primary w-100 py-2 hvr-bounce-out" type="submit">login</button>
<!--<p class="mt-5 mb-3 text-body-secondary">© 2017–2023</p>-->
</form>
</main>