feat: set admin name when self hosted init (#14146)

fix #14134
This commit is contained in:
DarkSky
2025-12-23 23:38:34 +08:00
committed by GitHub
parent a1f1c61a9f
commit 4b721dffe0
3 changed files with 4 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import { ServerService } from '../config';
import { validators } from '../utils/validators';
interface CreateUserInput {
name?: string;
email: string;
password: string;
}
@@ -58,6 +59,7 @@ export class CustomSetupController {
throw new InternalServerError();
}
const user = await this.models.user.create({
name: input.name || undefined,
email: input.email,
password: input.password,
registered: true,