mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-23 09:07:40 -05:00
fix: fix last registration error handling cases
This commit is contained in:
42
README.md
42
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
|
||||
- [x] Auth cookies
|
||||
@@ -51,7 +51,7 @@ export default defineEventHandler(async (event): Promise<ApiAuthLogin> => {
|
||||
captchaResponse: body.captchaResponse,
|
||||
username: body.username,
|
||||
password: body.password,
|
||||
passwordConfirm: body.password
|
||||
passwordConfirm: body.passwordConfirm
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
@@ -96,10 +96,11 @@ export const RefreshSchema = z.object({
|
||||
export type ApiAuthRefreshRequest = z.infer<typeof RefreshSchema>;
|
||||
|
||||
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()
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user