feat: add password reset functionality and email notifications
- Implemented forgot password and reset password routes in the backend. - Added email sending capabilities using Nodemailer for password reset requests. - Created ResetPassword page in the frontend for users to reset their passwords. - Updated user model to include reset token and expiry fields. - Integrated hiscores API with caching mechanism for improved performance. - Enhanced authentication modal to include forgot password option. - Updated environment configuration for SMTP settings.
This commit is contained in:
@@ -9,7 +9,7 @@ export default async function getHiscores(rsn, handleResultCallback) {
|
||||
});
|
||||
}
|
||||
|
||||
const url = `${BASE_URL}/hiscores/${rsn}`;
|
||||
const url = `${BASE_URL}/api/hiscores/${rsn}`;
|
||||
await fetch(url)
|
||||
.then(res => res.json())
|
||||
.then(
|
||||
|
||||
Reference in New Issue
Block a user