mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor(core): Port 3 more controllers to use DTOs (no-changelog) (#12375)
This commit is contained in:
committed by
GitHub
parent
1d5e891a0d
commit
371a09de96
@@ -17,7 +17,6 @@ import type { FeatureReturnType } from '@/license';
|
||||
import { License } from '@/license';
|
||||
import { MfaService } from '@/mfa/mfa.service';
|
||||
import { Push } from '@/push';
|
||||
import type { UserSetupPayload } from '@/requests';
|
||||
import { CacheService } from '@/services/cache/cache.service';
|
||||
import { PasswordUtility } from '@/services/password.utility';
|
||||
|
||||
@@ -48,6 +47,16 @@ const tablesToTruncate = [
|
||||
'workflows_tags',
|
||||
];
|
||||
|
||||
type UserSetupPayload = {
|
||||
email: string;
|
||||
password: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
mfaEnabled?: boolean;
|
||||
mfaSecret?: string;
|
||||
mfaRecoveryCodes?: string[];
|
||||
};
|
||||
|
||||
type ResetRequest = Request<
|
||||
{},
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user