From 65d796b9f09417f85bb3209c5e5fbe597a4bb2d3 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 3 Aug 2025 19:51:17 +0200 Subject: [PATCH] fix: correct password generator function name in reset password route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change generatePassword to generateReadablePassword - Fixes TypeError when resetting gallery passwords - The function generatePassword doesn't exist in passwordGenerator.js 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- backend/src/routes/adminEvents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/routes/adminEvents.js b/backend/src/routes/adminEvents.js index 9a287a3..b856415 100644 --- a/backend/src/routes/adminEvents.js +++ b/backend/src/routes/adminEvents.js @@ -526,8 +526,8 @@ router.post('/:id/reset-password', adminAuth, async (req, res) => { } // Generate new password - const { generatePassword } = require('../utils/passwordGenerator'); - const newPassword = generatePassword(); + const { generateReadablePassword } = require('../utils/passwordGenerator'); + const newPassword = generateReadablePassword(); const passwordHash = await bcrypt.hash(newPassword, 10); // Update event with new password