1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

Enhance localization support; update error messages and add translations for adventure calendar

This commit is contained in:
Sean Morley 2024-12-14 09:56:12 -05:00
parent 9bf0849b92
commit 0376709325
17 changed files with 212 additions and 68 deletions

View file

@ -21,13 +21,14 @@ export const load = (async (event) => {
body: JSON.stringify({ key: key })
});
if (!verifyFetch.ok) {
if (verifyFetch.ok || verifyFetch.status == 401) {
return {
verified: true
};
} else {
let error_message = await verifyFetch.json();
console.error(error_message);
console.error('Failed to verify email');
return { status: 404 };
}
return {
verified: true
};
}) satisfies PageServerLoad;