diff --git a/README.md b/README.md index d9aecd6..2f15016 100644 --- a/README.md +++ b/README.md @@ -118,44 +118,4 @@ Miscellanous tasks: - [x] Delete account - [x] server environment changing - [x] Mii edits saving - - [x] Auth cookies - -Testing findings: -- [X] progress total percentage not rounded properly -- [X] faq open first by default -- [X] fix github icon size on team -- [X] click out of bandwidth doesn't close bandwidth (use vueuse onclickoutside) -- [X] fix hover and clickaway on navbar -- [X] fix locale list not having the same layout, no clickaway -- [X] progress is a wrench? - -- [X] rss feed wrong content type - -- [X] progress page has no mobile layout (jvs you suck) -- [X] progress seems to sometimes not load for jvs? - -idk jvs, seems to work on my machine... and yours too now??? - -- [X] docs errors page, ironically, gives an error -- [X] docs headings are very purple -- [X] docs codeblocks *not* very purple -- [X] docs index page redirect should be in config, not as a page - -- [X] upgrade: progress numbers not bold -- [X] upgrade: align perk text with icon - -- [X] miieditor logs serverside -- [?] just move as much stuff as possible to renderside really - -- [X] account shows beta switch even if it's disabled -- [X] if user has beta access they should be able to change back to prod -- [X] add dev server env button -- [X] discord link success/fail toast - -- [X] forgot password shows success toast even w no captcha (doesn't actually submit) -- [x] signup birthdate editor - -- [X] need error page -- [X] need 404 page - -- [x] error handling \ No newline at end of file + - [x] Auth cookies \ No newline at end of file diff --git a/server/api/auth/register.post.ts b/server/api/auth/register.post.ts index 0fccad3..a6b2d6a 100644 --- a/server/api/auth/register.post.ts +++ b/server/api/auth/register.post.ts @@ -51,7 +51,7 @@ export default defineEventHandler(async (event): Promise => { captchaResponse: body.captchaResponse, username: body.username, password: body.password, - passwordConfirm: body.password + passwordConfirm: body.passwordConfirm }); return { diff --git a/shared/api-types.ts b/shared/api-types.ts index 2989f73..27a67ab 100644 --- a/shared/api-types.ts +++ b/shared/api-types.ts @@ -96,10 +96,11 @@ export const RefreshSchema = z.object({ export type ApiAuthRefreshRequest = z.infer; export const RegisterSchema = z.object({ - email: z.email(), + email: z.string(), username: z.string(), miiName: z.string(), password: z.string(), + passwordConfirm: z.string(), birthday: z.iso.date(), captchaResponse: z.string().optional() }); diff --git a/src/pages/account/register.vue b/src/pages/account/register.vue index 0a196a9..caa59a3 100644 --- a/src/pages/account/register.vue +++ b/src/pages/account/register.vue @@ -35,6 +35,7 @@ const { execute, isLoading } = useAsync({ email: registerForm.email, miiName: registerForm.mii_name, password: registerForm.password, + passwordConfirm: registerForm.password_confirm, username: registerForm.username, birthday: registerForm.birthday, captchaResponse: captchaResponse ?? undefined