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:
parent
9bf0849b92
commit
0376709325
17 changed files with 212 additions and 68 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue