Add 'Intern' menu for logged-in users with submenu navigation

This commit is contained in:
Torsten Schulz (local)
2025-10-21 11:37:26 +02:00
parent 96ff9e5d44
commit af6aef6d8f
67 changed files with 1075 additions and 463 deletions

View File

@@ -31,6 +31,12 @@ const login_post = defineEventHandler(async (event) => {
message: "Ung\xFCltige Anmeldedaten"
});
}
if (user.active === false) {
throw createError({
statusCode: 403,
message: "Ihr Konto wurde noch nicht freigeschaltet. Bitte warten Sie auf die Best\xE4tigung des Vorstands."
});
}
const isValid = await verifyPassword(password, user.password);
if (!isValid) {
throw createError({