| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/vhost/itmtrsrv.arukustech.com/public/ |
Upload File : |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forgot Password - Company Monitor</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<style>
body {
background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
font-family: 'Inter', sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.card {
border: none;
border-radius: 16px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
padding: 30px;
}
.brand-logo {
max-width: 160px;
height: auto;
margin-bottom: 20px;
display: block;
margin-left: auto;
margin-right: auto;
}
.btn-primary {
background-color: #4f46e5;
border: none;
padding: 0.75rem;
font-weight: 600;
border-radius: 8px;
}
.btn-primary:hover {
background-color: #4338ca;
}
.form-control:focus {
border-color: #4f46e5;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
</style>
</head>
<body>
<div class="card">
<div class="text-center">
<img src="logo.png" alt="Company Logo" class="brand-logo">
<h4 class="fw-bold">Reset Access</h4>
<p class="text-muted small mb-4">
Enter your email and we'll send you a link to reset your password.
</p>
</div>
<!-- ?? Forgot Password Form -->
<form id="forgotForm">
<div class="mb-3 text-start">
<label class="form-label small fw-bold text-secondary">Email Address</label>
<input
id="email"
name="email"
type="email"
class="form-control"
placeholder="name@company.com"
required
>
</div>
<button id="submitBtn" type="submit" class="btn btn-primary w-100">
Send Reset Link
</button>
<div id="msg" class="text-center mt-3 small"></div>
<div class="text-center mt-3">
<a href="/login" class="text-decoration-none small text-secondary">
Back to Login
</a>
</div>
</form>
</div>
<script>
document.getElementById("forgotForm").addEventListener("submit", async function (e) {
e.preventDefault();
const email = document.getElementById("email").value;
const msg = document.getElementById("msg");
const btn = document.getElementById("submitBtn");
msg.innerText = "";
btn.disabled = true;
btn.innerText = "Sending...";
try {
const res = await fetch("/api/v1/forgot-password", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ email })
});
const data = await res.json();
if (res.ok) {
msg.innerHTML = `<span class="text-success">
If the email exists, a reset link has been sent.
</span>`;
} else {
msg.innerHTML = `<span class="text-danger">
${data.detail || "Something went wrong"}
</span>`;
}
} catch (err) {
msg.innerHTML = `<span class="text-danger">
Server unreachable. Try again later.
</span>`;
}
btn.disabled = false;
btn.innerText = "Send Reset Link";
});
</script>
</body>
</html>