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) {