File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
apps/backend/src/api/routes Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { getCookieUrlFromDomain } from '@gitroom/helpers/subdomain/subdomain.man
2020import { EmailService } from '@gitroom/nestjs-libraries/services/email.service' ;
2121import { RealIP } from 'nestjs-real-ip' ;
2222import { 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' )
You can’t perform that action at this time.
0 commit comments