mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-06 02:24:33 +08:00
Add login and automatic registration; Prepare Group sync
This commit is contained in:
@ -118,7 +118,7 @@ class LoginController extends Controller
|
||||
{
|
||||
$socialDrivers = $this->socialAuthService->getActiveDrivers();
|
||||
$authMethod = config('auth.method');
|
||||
$samlEnabled = config('saml2_settings.enabled') == true;
|
||||
$samlEnabled = config('services.saml.enabled') == true;
|
||||
|
||||
if ($request->has('email')) {
|
||||
session()->flashInput([
|
||||
|
@ -37,6 +37,11 @@ class Kernel extends HttpKernel
|
||||
'throttle:60,1',
|
||||
'bindings',
|
||||
],
|
||||
'saml' => [
|
||||
\BookStack\Http\Middleware\EncryptCookies::class,
|
||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user