36 lines
929 B
PHP
36 lines
929 B
PHP
<?php
|
|
// views/login.php
|
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
// Handle login logic here
|
|
// Use UserManager to verify credentials
|
|
// Redirect to home page or dashboard on success
|
|
}
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Login</title>
|
|
<link rel="stylesheet" href="path/to/bootstrap/css/bootstrap.min.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<h2>Login</h2>
|
|
<form method="POST" action="/login">
|
|
<div class="form-group">
|
|
<label for="username">Username:</label>
|
|
<input type="text" class="form-control" id="username" name="username" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Password:</label>
|
|
<input type="password" class="form-control" id="password" name="password" required>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Login</button>
|
|
</form>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|