Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function buildCreatedConnectionDs(
is_2fa_enabled: user.isOTPEnabled,
role: user.role,
externalRegistrationProvider: user.externalRegistrationProvider,
show_test_connections: user.showTestConnections,
};
}),
};
Expand Down
3 changes: 3 additions & 0 deletions backend/src/entities/user/dto/found-user.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export class FoundUserDto {

@ApiProperty({ enum: ExternalRegistrationProviderEnum })
externalRegistrationProvider: ExternalRegistrationProviderEnum;

@ApiProperty({ default: true })
show_test_connections: boolean;
}

export class SimpleFoundUserInfoDs {
Expand Down
1 change: 1 addition & 0 deletions backend/src/entities/user/user-helper.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class UserHelperService implements OnModuleInit {
is_2fa_enabled: user.otpSecretKey !== null && user.isOTPEnabled,
company: user.company ? { id: user.company.id } : null,
externalRegistrationProvider: user.externalRegistrationProvider,
show_test_connections: user.showTestConnections,
};
}

Expand Down
1 change: 1 addition & 0 deletions backend/src/entities/user/utils/build-found-user.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export function buildFoundUserDto(user: UserEntity): FoundUserDto {
role: user.role,
is_2fa_enabled: user.otpSecretKey !== null && user.isOTPEnabled,
externalRegistrationProvider: user.externalRegistrationProvider,
show_test_connections: user.showTestConnections,
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class SaasRegisterInvitedUserUseCase
is_2fa_enabled: false,
suspended: false,
externalRegistrationProvider: savedUser.externalRegistrationProvider,
show_test_connections: savedUser.showTestConnections,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class SaasUsualRegisterUseCase
is_2fa_enabled: false,
suspended: false,
externalRegistrationProvider: savedUser.externalRegistrationProvider,
show_test_connections: savedUser.showTestConnections,
};
}

Expand Down
Loading