fix: wrong environment configuration for ALLOW_REGISTRATION

This commit is contained in:
Elias Schneider
2022-10-11 23:21:14 +02:00
parent 395f618bb2
commit 759db40ac9
2 changed files with 5 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ export class AuthController {
@Post("signUp")
signUp(@Body() dto: AuthRegisterDTO) {
if (!this.config.get("ALLOW_REGISTRATION"))
if (this.config.get("ALLOW_REGISTRATION") == "false")
throw new ForbiddenException("Registration is not allowed");
return this.authService.signUp(dto);
}