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">
|
2024-01-19 12:16:20 +01:00
|
|
|
<h1>Login</h1>
|
2024-02-03 16:08:26 +01:00
|
|
|
<form>
|
2024-01-19 12:16:20 +01:00
|
|
|
<label for="email">Email:</label>
|
2024-02-03 16:08:26 +01:00
|
|
|
<input type="text" id="email" name="email" required>
|
2024-01-19 12:16:20 +01:00
|
|
|
|
|
|
|
<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>
|