/
signin.php
44 lines (40 loc) · 1.91 KB
/
signin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
if(isset($_SESSION['isAuthenticated'])){
header('Location: dashboard.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/tailwind.min.css">
<title>Sign In - Coventry Pay</title>
<style>
body{margin:0; background-color:#f4fbff;}
</style>
</head>
<body>
<main class="h-screen w-full">
<section class="w-5/12 h-full flex flex-col justify-center m-auto">
<div class="bg-white rounded-md shadow-sm p-8">
<form method="POST" action="/dashboard/signin.php">
<h1 class="mb-4 font-bold text-2xl">Sign In <?php var_dump(password_verify("24012001", '$2y$10$fVBDaKLFQvxbgT.OmM9hS.MOd9NnNEyOdVmTb/.rstTjzMXPUWxRy'));?></h1>
<div class="flex flex-col mb-10">
<label for="email" class="mb-4">Email</label>
<input type="email" name="email" id="email" class="bg-gray-100 rounded-md p-2 focus:ring focus:ring-blue-400 outline-none" placeholder="Email" autocomplete="false" required>
</div>
<div class="flex flex-col">
<label for="password" class="mb-4">Password</label>
<input type="password" name="password" id="password" class="bg-gray-100 rounded-md p-2 focus:ring focus:ring-blue-400 outline-none" placeholder="Password" required>
</div>
<button class="rounded-md p-2 text-center mt-8 bg-blue-500 text-white w-full">
Sign In
</button>
</form>
</div>
</section>
</main>
</body>
</html>