Add password reset functionality(WIP): implement PasswordReset class, database methods for password reset, and update routes for password reset handling. Enhance UI with new success message styles and update login page with reset password link.

This commit is contained in:
whoswhip
2025-06-29 10:29:37 -04:00
parent 73743399f1
commit 38411ca7c0
7 changed files with 320 additions and 44 deletions
+19
View File
@@ -26,6 +26,14 @@
color: var(--neutral-100);
}
.auth-description {
text-align: center;
color: var(--neutral-400);
font-size: 0.9rem;
margin-bottom: 20px;
line-height: 1.5;
}
.auth-form {
display: flex;
flex-direction: column;
@@ -120,6 +128,17 @@
animation: fadeIn 0.3s ease;
}
.success-message {
background-color: rgba(34, 197, 94, 0.1);
color: #22c55e;
padding: 10px 16px;
border-radius: 6px;
margin-bottom: 16px;
font-size: 0.9rem;
border: 1px solid rgba(34, 197, 94, 0.2);
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
+2 -2
View File
@@ -29,9 +29,9 @@
<input type="password" id="password" name="password" placeholder="Enter your password" required>
</div>
<button type="submit" class="auth-button">Login</button>
</form>
<div class="auth-links">
</form> <div class="auth-links">
<p>Don't have an account? <a href="register.html">Register</a></p>
<p>Forgot your password? <a href="reset-password.html">Reset Password</a></p>
<p><a href="/">Back to Home</a></p>
</div>
</div>