fix(auth): reject a weak claim password before sending the code (#1648)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-15 20:53:03 +02:00
1 parent ae11ee86aa
commit e0876d719c
6 files changed
+30 -8

No files matched your search

@@ -136,6 +136,9 @@ export type EmailChangeVerifyOriginalRequest = z.infer<typeof EmailChangeVerifyO
export const EmailChangeRequestNewRequest = EmailChangeTicketRequest.extend({
new_email: EmailType.describe('New email address to switch to'),
original_proof: createStringType().describe('Proof token obtained from verifying the original email'),
new_password: PasswordType.optional().describe(
'Password the caller intends to set, rejected here instead of after the code is sent',
),
});
export type EmailChangeRequestNewRequest = z.infer<typeof EmailChangeRequestNewRequest>;