mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-30 01:47:16 +00:00
* Added modules folder to the source code * Added some changes to the APIs and removing unwanted files * fixed: slug and padding issue * Fixed invitations page issue * cleaning up and modularising the store code * Refactoring the SSOAuthModule * Onboarding bug fixes (#2072) * Added the enter event hook * Added link to the header icon * removed the pointer from the parent class and added to the child * reset password button fixes and minor type fixes * fixed validations for password * handled reset password scenarios (might need some refactoring) * modified email component to take custom placeholders * fixed css error in submig button in disabled state * added handle submit in the setup page * added seprate component for resend email button to prevent re-rendering of component * Added clearPageHistory * Added forgot password create account CTA issue * Added css fix for the page scroll issue * review changes * removed duplicate component * fixed the placeholder issue * Added consultation banner fix * overlapping of email success info page and dark theme fixes * Added maxWidth to the toast * minor css fix * white labelling changes * fixed: black dot issue * Added dark-theme fix for the submit-btn * fixed margin related issue for mozilla firefox * added seprator component and minor css fix * css fixes for password success info screen * css fix --------- Co-authored-by: rohanlahori <rohanlahori99@gmail.com> * refactoring the server side code * removed onboarding status * Added pr changes --------- Co-authored-by: rohanlahori <rohanlahori99@gmail.com>
16 lines
683 B
TypeScript
16 lines
683 B
TypeScript
import { Controller, Post, Body, Res, UseGuards } from '@nestjs/common';
|
|
import { Response } from 'express';
|
|
import { CreateAdminDto } from '@dto/user.dto';
|
|
import { FirstUserSignupGuard } from 'src/modules/auth/first-user-signup.guard';
|
|
import { OnboardingService } from './service';
|
|
|
|
@Controller('onboarding')
|
|
export class OnboardingController {
|
|
constructor(private readonly onboardingService: OnboardingService) {}
|
|
|
|
@UseGuards(FirstUserSignupGuard)
|
|
@Post('setup-first-user')
|
|
async setupFirstUser(@Body() userCreateDto: CreateAdminDto, @Res({ passthrough: true }) response: Response) {
|
|
return await this.onboardingService.setupFirstUser(response, userCreateDto);
|
|
}
|
|
}
|