mirror of
https://github.com/docmost/docmost.git
synced 2025-11-24 00:41:20 +10:00
cleanups
This commit is contained in:
@ -33,11 +33,12 @@ export class AuthController {
|
||||
return this.authService.login(loginInput, req.raw.workspaceId);
|
||||
}
|
||||
|
||||
@HttpCode(HttpStatus.OK)
|
||||
/* @HttpCode(HttpStatus.OK)
|
||||
@Post('register')
|
||||
async register(@Req() req, @Body() createUserDto: CreateUserDto) {
|
||||
return this.authService.register(createUserDto, req.raw.workspaceId);
|
||||
}
|
||||
*/
|
||||
|
||||
@UseGuards(SetupGuard)
|
||||
@HttpCode(HttpStatus.OK)
|
||||
|
||||
@ -78,7 +78,11 @@ export class SignupService {
|
||||
// create user
|
||||
|
||||
const user = await this.userRepo.insertUser(
|
||||
{ ...createAdminUserDto, role: UserRole.OWNER },
|
||||
{
|
||||
...createAdminUserDto,
|
||||
role: UserRole.OWNER,
|
||||
emailVerifiedAt: new Date(),
|
||||
},
|
||||
trx,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user