mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user