jilo-web/app/templates/form-login.php

29 lines
1.5 KiB
PHP
Raw Normal View History

2024-08-07 08:13:55 +00:00
<!-- login form -->
<div class="card text-center w-50 mx-auto">
<h2 class="card-header">Login</h2>
<div class="card-body">
<p class="card-text"><strong>Welcome to JILO!</strong><br />Please enter login credentials:</p>
2024-10-04 11:18:28 +00:00
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?page=login">
2025-01-30 16:48:46 +00:00
<?php include 'csrf_token.php'; ?>
<div class="form-group mb-3">
2025-02-23 15:28:20 +00:00
<input type="text" class="form-control w-50 mx-auto" name="username" placeholder="Username"
pattern="[A-Za-z0-9_\-]{3,20}" title="3-20 characters, letters, numbers, - and _"
2025-01-30 16:48:46 +00:00
required autofocus />
</div>
<div class="form-group mb-3">
2025-02-23 15:28:20 +00:00
<input type="password" class="form-control w-50 mx-auto" name="password" placeholder="Password"
2025-01-30 16:48:46 +00:00
pattern=".{2,}" title="Eight or more characters"
required />
</div>
<div class="form-group mb-3">
<label for="remember_me">
<input type="checkbox" id="remember_me" name="remember_me" />
remember me
</label>
</div>
2024-08-07 08:13:55 +00:00
<input type="submit" class="btn btn-primary" value="Login" />
</form>
</div>
2024-08-06 07:40:52 +00:00
</div>
2024-08-07 08:13:55 +00:00
<!-- /login form -->