mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
275 B
11 lines
275 B
export default defineEventHandler(async (event) => {
|
|
const session = await useWGSession(event);
|
|
const authenticated = REQUIRES_PASSWORD
|
|
? session.data.authenticated === true
|
|
: true;
|
|
|
|
return {
|
|
requiresPassword: REQUIRES_PASSWORD,
|
|
authenticated,
|
|
};
|
|
});
|
|
|