2023-01-09 16:32:58 -05:00
|
|
|
import { DatabaseModule, SystemConfigEntity, UserEntity } from '@app/database';
|
2022-11-05 12:28:40 -04:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
2023-01-09 16:32:58 -05:00
|
|
|
import { DisablePasswordLoginCommand, EnablePasswordLoginCommand } from './commands/password-login';
|
2022-11-05 12:28:40 -04:00
|
|
|
import { PromptPasswordQuestions, ResetAdminPasswordCommand } from './commands/reset-admin-password.command';
|
|
|
|
|
|
|
|
|
|
@Module({
|
2023-01-09 16:32:58 -05:00
|
|
|
imports: [DatabaseModule, TypeOrmModule.forFeature([UserEntity, SystemConfigEntity])],
|
|
|
|
|
providers: [
|
|
|
|
|
ResetAdminPasswordCommand,
|
|
|
|
|
PromptPasswordQuestions,
|
|
|
|
|
EnablePasswordLoginCommand,
|
|
|
|
|
DisablePasswordLoginCommand,
|
|
|
|
|
],
|
2022-11-05 12:28:40 -04:00
|
|
|
})
|
|
|
|
|
export class AppModule {}
|