From c0b3334406300e50ff3616556534f7ffd7d0869f Mon Sep 17 00:00:00 2001 From: Martin Zurowietz Date: Fri, 3 May 2024 08:24:18 +0200 Subject: [PATCH] Fix registration with SSO only configuration --- src/Http/Controllers/RegisterController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Http/Controllers/RegisterController.php b/src/Http/Controllers/RegisterController.php index 4ba8b72..9cd22f0 100644 --- a/src/Http/Controllers/RegisterController.php +++ b/src/Http/Controllers/RegisterController.php @@ -71,7 +71,9 @@ public function register(Request $request) ->withErrors(['lslogin-id' => 'The Life Science Login ID is already connected with an account.']); } - return parent::register($request); + // Do not use parent::register() because this may be disabled with + // config('biigle.sso_registration_only'). + return $this->baseRegister($request); } /**