diff --git a/controllers/authController.js b/controllers/authController.js index 333857c..cd47d02 100644 --- a/controllers/authController.js +++ b/controllers/authController.js @@ -25,7 +25,7 @@ exports.register = async (req, res) => { while (attempt < maxAttempts && !createdUser) { try { - createdUser = await User.create({ name, email, password: hashedPassword, active: true }); + createdUser = await User.create({ name, email, password: hashedPassword, active: false }); } catch (err) { lastError = err; // Spezifisch auf Lock-Timeout reagieren und erneut versuchen