adlerka.top/templates/login.html

32 lines
961 B
HTML
Raw Normal View History

2024-02-03 16:08:26 +01:00
<script>
function login() {
const email = document.getElementById("email").value;
const password = document.getElementById("password").value;
doLogin(email, password);
}
function doLogin(email, password) {
const data = new URLSearchParams();
data.append("action", "login");
data.append("email", email);
data.append("password", password);
doAction(data, "Login Successful!", "Login failed. Please check your credentials.");
}
</script>
<div class="form-container" id="loginForm">
<h1>Login</h1>
2024-02-03 16:08:26 +01:00
<form>
<label for="email">Email:</label>
2024-02-03 16:08:26 +01:00
<input type="text" id="email" name="email" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<button type="button" onclick="login()">Login</button>
</form>
2024-02-03 16:08:26 +01:00
</div>
<!-- Centralized Status Message -->
<p id="StatusMessage"></p>