]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/RegisterController.php
New translations validation.php (German Informal)
[bookstack] / app / Http / Controllers / Auth / RegisterController.php
index 000833029a48cfe663dc43384b357496bf9f0f50..8e4dd57c3bd9ffbf4dcdc546e57f67787a98896b 100644 (file)
@@ -89,7 +89,7 @@ class RegisterController extends Controller
      */
     protected function checkRegistrationAllowed()
     {
-        if (!setting('registration-enabled')) {
+        if (!setting('registration-enabled') || config('auth.method') === 'ldap') {
             throw new UserRegistrationException(trans('auth.registrations_disabled'), '/login');
         }
     }