mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(auth): reject a weak claim password before sending the code (#1648)
This commit is contained in:
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>;
|
||||
|
||||
Reference in new issue
Block a user