mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
feat(server): reset admin password using cli command in the server container (#928)
This commit is contained in:
parent
dd8a4c0c56
commit
02bc84062e
9 changed files with 300 additions and 277 deletions
11
server/apps/cli/src/app.module.ts
Normal file
11
server/apps/cli/src/app.module.ts
Normal 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 {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue