From 43aa75b16fa967a083b274dfba9e42016deb5808 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Sun, 8 Jun 2025 23:16:03 +0700 Subject: [PATCH] feat: check provider --- apps/backend/src/api/routes/auth.controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/api/routes/auth.controller.ts b/apps/backend/src/api/routes/auth.controller.ts index b524cf99..d75697ea 100644 --- a/apps/backend/src/api/routes/auth.controller.ts +++ b/apps/backend/src/api/routes/auth.controller.ts @@ -20,6 +20,7 @@ import { getCookieUrlFromDomain } from '@gitroom/helpers/subdomain/subdomain.man import { EmailService } from '@gitroom/nestjs-libraries/services/email.service'; import { RealIP } from 'nestjs-real-ip'; import { UserAgent } from '@gitroom/nestjs-libraries/user/user.agent'; +import { Provider } from '@prisma/client'; @ApiTags('Auth') @Controller('/auth') @@ -31,7 +32,9 @@ export class AuthController { @Get('/can-register') async canRegister() { - return { register: await this._authService.canRegister() }; + return { + register: await this._authService.canRegister(Provider.LOCAL as string), + }; } @Post('/register')