Add userVisitedAdventures table and API endpoints for visits and userinfo

This commit is contained in:
Sean Morley
2024-04-03 23:55:00 +00:00
parent ba6a5283fe
commit d834cef83b
10 changed files with 417 additions and 10 deletions

View File

@@ -21,6 +21,12 @@ export const actions: Actions = {
const username = formData.get("username");
const password = formData.get("password");
if (!username || !password) {
return fail(400, {
message: "Invalid request",
});
}
if (
typeof username !== "string" ||
username.length < 3 ||