Redesign login/register with Mento branding and email/mobile OTP.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 00:47:33 +03:30
co-authored by Cursor
parent aa3fe49ce6
commit c620d1d6d4
12 changed files with 1792 additions and 184 deletions
+18 -3
View File
@@ -1,6 +1,11 @@
import { Body, Controller, Get, Post, UseGuards } from '@nestjs/common';
import { AuthService } from './auth.service';
import { LoginDto, RegisterOrganizationDto } from './dto';
import {
LoginDto,
LoginVerifyOtpDto,
RegisterOrganizationDto,
RegisterVerifyOtpDto,
} from './dto';
import { JwtAuthGuard } from './jwt-auth.guard';
import { CurrentUser } from './current-user.decorator';
@@ -10,12 +15,22 @@ export class AuthController {
@Post('register')
register(@Body() dto: RegisterOrganizationDto) {
return this.authService.registerOrganization(dto);
return this.authService.startRegister(dto);
}
@Post('register/verify')
registerVerify(@Body() dto: RegisterVerifyOtpDto) {
return this.authService.verifyRegister(dto);
}
@Post('login')
login(@Body() dto: LoginDto) {
return this.authService.login(dto);
return this.authService.loginLegacy(dto);
}
@Post('login/verify')
loginVerify(@Body() dto: LoginVerifyOtpDto) {
return this.authService.verifyLogin(dto);
}
@UseGuards(JwtAuthGuard)