feat(server): reset admin password using cli command in the server container (#928)

This commit is contained in:
Jason Rasmussen
2022-11-05 12:28:40 -04:00
committed by GitHub
parent dd8a4c0c56
commit 02bc84062e
9 changed files with 300 additions and 277 deletions

View File

@@ -0,0 +1,11 @@
import { DatabaseModule } from '@app/database';
import { UserEntity } from '@app/database/entities/user.entity';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PromptPasswordQuestions, ResetAdminPasswordCommand } from './commands/reset-admin-password.command';
@Module({
imports: [DatabaseModule, TypeOrmModule.forFeature([UserEntity])],
providers: [ResetAdminPasswordCommand, PromptPasswordQuestions],
})
export class AppModule {}