mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
feat(core): Prompt user to confirm password when changing email and mfa is disabled (#19408)
Co-authored-by: Marc Littlemore <MarcL@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ccee1acf05
commit
f0388aae7e
@@ -28,4 +28,8 @@ export class UserUpdateRequestDto extends Z.class({
|
||||
firstName: nameSchema().optional(),
|
||||
lastName: nameSchema().optional(),
|
||||
mfaCode: z.string().optional(),
|
||||
/**
|
||||
* The current password is required when changing the email address and MFA is disabled.
|
||||
*/
|
||||
currentPassword: z.string().optional(),
|
||||
}) {}
|
||||
|
||||
Reference in New Issue
Block a user