Skip to content
Permalink
6dbc4a8127
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 49 lines (47 sloc) 1.38 KB
<%@page import="cfy.model.*"%>
<%@page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%
User auth = (User) request.getSession().getAttribute("auth");
if (auth != null) {
response.sendRedirect("index.jsp");
}
ArrayList<Cart> cart_list = (ArrayList<Cart>) session.getAttribute("cart-list");
if (cart_list != null) {
request.setAttribute("cart_list", cart_list);
}
%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/includes/head.jsp"%>
<title>Computer For You</title>
</head>
<body>
<%@include file="/includes/navbar.jsp"%>
<div class="container">
<div class="card w-50 mx-auto my-5">
<div class="card-header text-center">Login</div>
<div class="card-body">
<form action="user-login" method="post">
<div class="form-group">
<label>Email address</label>
<input type="email" name="login-email" class="form-control" placeholder="Enter email">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="login-password" class="form-control" placeholder="Password">
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Login</button>
<br><br>
<a href="register.jsp">Click here to Register</a>
</div>
</form>
</div>
</div>
</div>
<%@include file="/includes/footer.jsp"%>
</body>
</html>