From a86c05eb66fed12b97b5a88d2176e91f87e636f1 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 4 Feb 2026 11:53:28 +0100 Subject: [PATCH] feat(auth): add logging for user registration and activation email process - Introduced console logging to track the registration flow, including the generated activation code and confirmation of user creation and email sending. - This enhancement aids in debugging and monitoring the registration process without altering the existing functionality. --- backend/services/authService.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/services/authService.js b/backend/services/authService.js index ccf14fd..59b3d23 100644 --- a/backend/services/authService.js +++ b/backend/services/authService.js @@ -8,12 +8,15 @@ import { devLog, errorLog } from '../utils/logger.js'; const register = async (email, password) => { try { + console.log('register', email, password); const activationCode = Math.random().toString(36).substring(2, 15); + console.log('activationCode', activationCode); await User.create({ email, password, activationCode }); + console.log('User created'); // Aktivierungs‑E-Mail versenden await sendActivationEmail(email, activationCode); - + console.log('Activation email sent'); // Aufrufer bekommt absichtlich KEINE Userdaten zurück (siehe Controller) return; } catch (error) {