Skip to content

Commit 43aa75b

Browse files
committed
feat: check provider
1 parent 215398e commit 43aa75b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/backend/src/api/routes/auth.controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { getCookieUrlFromDomain } from '@gitroom/helpers/subdomain/subdomain.man
2020
import { EmailService } from '@gitroom/nestjs-libraries/services/email.service';
2121
import { RealIP } from 'nestjs-real-ip';
2222
import { UserAgent } from '@gitroom/nestjs-libraries/user/user.agent';
23+
import { Provider } from '@prisma/client';
2324

2425
@ApiTags('Auth')
2526
@Controller('/auth')
@@ -31,7 +32,9 @@ export class AuthController {
3132

3233
@Get('/can-register')
3334
async canRegister() {
34-
return { register: await this._authService.canRegister() };
35+
return {
36+
register: await this._authService.canRegister(Provider.LOCAL as string),
37+
};
3538
}
3639

3740
@Post('/register')

0 commit comments

Comments
 (0)