mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix: Require mfa code to change email (#10354)
This commit is contained in:
@@ -43,6 +43,11 @@ export class UserUpdatePayload implements Pick<User, 'email' | 'firstName' | 'la
|
||||
@IsString({ message: 'Last name must be of type string.' })
|
||||
@Length(1, 32, { message: 'Last name must be $constraint1 to $constraint2 characters long.' })
|
||||
lastName: string;
|
||||
|
||||
@IsOptional()
|
||||
@Expose()
|
||||
@IsString({ message: 'Two factor code must be a string.' })
|
||||
mfaCode?: string;
|
||||
}
|
||||
|
||||
export class UserSettingsUpdatePayload {
|
||||
|
||||
Reference in New Issue
Block a user