-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
35 lines (35 loc) · 1.4 KB
/
login.html
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
<!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/bootstrap/css/bootstrap.min.css">
<title>Login</title>
</head>
<body>
<div class="d-flex flex-column">
<h2 class="mx-auto">Login</h2>
<form action="/login.php" method="POST" class="w-50 mx-auto">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
<script src="./css/bootstrap/js/bootstrap.min.js"></script>
<script>
const urlParams = new URLSearchParams(window.location.search);
const failed = urlParams.get("failed");
if(failed) {
window.location.search = "";
alert("Wrong email or password!");
}
</script>
</body>
</html>