-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.jsp
65 lines (64 loc) · 1.87 KB
/
login.jsp
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html>
<head>
<title>B-Bunko</title>
<link rel="stylesheet" type="text/css" href="./assets/styles/style.css">
<link rel="stylesheet" type="text/css" href="./assets/styles/login.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
</head>
<body>
<div class="loginRegister">
<div class="dummy"></div>
<div class="form">
<a href="./index.jsp" class="form_icon"><img href="#"></a>
<div class="switch_form_text">Don't have an account yet? <a href="./register.jsp" class="link_color">Sign Up</a></div>
<form class="loginForm" action="utility/doLogin.jsp" method="GET">
<div class="input_container">
<div class="label">Email</div>
<input type="email" name="user_email">
</div>
<div class="input_container">
<div class="label">Password</div>
<input type="password" name="user_password">
</div>
<div class="input_container">
<input type="checkbox" name="user_remember">
Remember me
</div>
<%
String error = request.getParameter("err");
if(error != null){
%>
<div class="errMsg">
<%
if(error.equals("1")){
//email is empty
%>
Email must be filled
<%
}
else if(error.equals("2")){
//password is empty
%>
Password must be filled
<%
}
else if(error.equals("3")){
//incorrect password
%>
Incorrect password
<%
}
%>
</div>
<%
}
%>
<div class="input_container">
<input type="submit" class="button button_2" value="SIGN IN">
</div>
</form>
</div>
</div>
</body>
</html>