mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-11 10:27:01 +02:00
fix: wrong environment configuration for ALLOW_REGISTRATION
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user