Run this PowerShell command from the project root:
.\fix-login.ps1This will:
- Kill any running Node processes
- Re-seed the database with correct password hashing
- Prepare everything for login
Open a new PowerShell window and run:
cd .\server
npm run devYou should see:
API running on 5000
Open another PowerShell window and run:
npm run devYou should see:
Local: http://localhost:5173
- Open http://localhost:5173 in your browser
- Click "Sign In"
- Enter credentials:
- Email:
admin@jobternify.com - Password:
admin123
- Email:
- Click "Sign in"
# Reset the admin password
cd .\server
node src/resetPassword.js- Make sure backend is running on Terminal 1
- Check backend shows "API running on 5000"
- Check browser console (F12 → Console) for CORS errors
- Make sure frontend is running on Terminal 2
- Try http://localhost:5173 (not localhost:3000)
- Clear browser cache (Ctrl+Shift+Delete)
- Check
.envhas correctMONGO_URI - Verify MongoDB is running
- Check connection string is valid