Add 'Intern' menu for logged-in users with submenu navigation
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user