diff --git a/backend/routers/authRouter.js b/backend/routers/authRouter.js index fb81b97..c48f474 100644 --- a/backend/routers/authRouter.js +++ b/backend/routers/authRouter.js @@ -4,10 +4,13 @@ import AuthController from '../controllers/authController.js'; const router = Router(); const authController = new AuthController(); +// Öffentliche Routen (keine Authentifizierung erforderlich) router.post('/register', authController.register); router.post('/login', authController.login); router.post('/forgot-password', authController.forgotPassword); router.post('/activate', authController.activateAccount); + +// Geschützte Routen (Authentifizierung erforderlich) router.get('/logout', authController.logout); export default router; diff --git a/backend/services/emailService.js b/backend/services/emailService.js index 269d9f3..5e6d723 100644 --- a/backend/services/emailService.js +++ b/backend/services/emailService.js @@ -25,6 +25,12 @@ export const sendPasswordResetEmail = async (email, resetLink, language) => { }; export const sendAccountActivationEmail = async (email, activationLink, username, resetToken, languageId) => { + // Temporär deaktiviert für Deployment + console.log(`📧 E-Mail-Versand deaktiviert: Aktivierungs-E-Mail für ${username} (${email})`); + console.log(`🔗 Aktivierungs-Link: ${activationLink}`); + console.log(`🎫 Reset-Token: ${resetToken}`); + return; + const languageObject = await UserParamValue.findOne({ where: { id: languageId diff --git a/backend/utils/falukant/initializeFalukantTypes.js b/backend/utils/falukant/initializeFalukantTypes.js index 8c5623e..9c2bc67 100644 --- a/backend/utils/falukant/initializeFalukantTypes.js +++ b/backend/utils/falukant/initializeFalukantTypes.js @@ -963,7 +963,7 @@ export const initializeFalukantTitlesOfNobility = async () => { { labelTr: "prince-regent", level: 18 }, { labelTr: "king", level: 19 }, ], { - updateOnDuplicate: ['labelTr'], + ignoreDuplicates: true, }); console.log(`[Falukant] Adelstitel initialisiert: 19 Titel`);