- 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.
38 lines
1.1 KiB
JSON
38 lines
1.1 KiB
JSON
{
|
|
"name": "leagues-tools-server",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "cp .env.development .env && tsx watch src/index.ts",
|
|
"prod": "cp .env.production .env && tsx src/index.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"start:dev": "cp .env.development .env && node dist/index.js",
|
|
"start:prod": "cp .env.production .env && node dist/index.js",
|
|
"db:generate": "prisma generate",
|
|
"db:push": "prisma db push",
|
|
"db:push:dev": "cp .env.development .env && prisma db push",
|
|
"db:push:prod": "cp .env.production .env && prisma db push",
|
|
"db:migrate": "prisma migrate dev",
|
|
"db:studio": "prisma studio"
|
|
},
|
|
"dependencies": {
|
|
"@hono/node-server": "^1.13.7",
|
|
"@prisma/client": "^6.2.1",
|
|
"bcrypt": "^5.1.1",
|
|
"blakejs": "^1.2.1",
|
|
"hono": "^4.6.16",
|
|
"nodemailer": "^7.0.13",
|
|
"uuid": "^11.0.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcrypt": "^5.0.2",
|
|
"@types/node": "^22.10.5",
|
|
"@types/nodemailer": "^7.0.9",
|
|
"@types/uuid": "^10.0.0",
|
|
"prisma": "^6.2.1",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.3"
|
|
}
|
|
}
|