Untitled
unknown
plain_text
2 years ago
1.7 kB
20
Indexable
<!-- views/login.ejs -->
<html>
<head>
<title>Login</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
</head>
<body>
<div class="container my-5">
<div class="shadow-lg p-5">
<% if (error) { %>
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>
<%= error %>!
</strong>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<% } %>
<h1>Login</h1>
<form action="/login" method="post">
<div class="input my-3">
<label for="username">Username:</label>
<input type="text" name="username" class="form-control" required>
</div>
<div class="input my-3">
<label for="password">Password:</label>
<input type="password" name="password" class="form-control" required>
</div>
<button type="submit" class="btn btn-primary">Login</button>
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
</body>
</html>Editor is loading...
Leave a Comment