|
|
|
@ -72,6 +72,7 @@ use OCP\IServerContainer; |
|
|
|
|
use OCP\ISession; |
|
|
|
|
use OCP\IURLGenerator; |
|
|
|
|
use OCP\IUserSession; |
|
|
|
|
use OCP\Security\Bruteforce\IThrottler; |
|
|
|
|
use Psr\Container\ContainerInterface; |
|
|
|
|
use Psr\Log\LoggerInterface; |
|
|
|
|
|
|
|
|
@ -233,7 +234,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { |
|
|
|
|
$c->get(IRequest::class), |
|
|
|
|
$c->get(IControllerMethodReflector::class), |
|
|
|
|
$c->get(IUserSession::class), |
|
|
|
|
$c->get(OC\Security\Bruteforce\Throttler::class) |
|
|
|
|
$c->get(IThrottler::class) |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
$dispatcher->registerMiddleware( |
|
|
|
@ -291,7 +292,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { |
|
|
|
|
$dispatcher->registerMiddleware( |
|
|
|
|
new OC\AppFramework\Middleware\Security\BruteForceMiddleware( |
|
|
|
|
$c->get(IControllerMethodReflector::class), |
|
|
|
|
$c->get(OC\Security\Bruteforce\Throttler::class), |
|
|
|
|
$c->get(IThrottler::class), |
|
|
|
|
$c->get(IRequest::class), |
|
|
|
|
$c->get(LoggerInterface::class) |
|
|
|
|
) |
|
|
|
@ -309,7 +310,7 @@ class DIContainer extends SimpleContainer implements IAppContainer { |
|
|
|
|
$c->get(IRequest::class), |
|
|
|
|
$c->get(ISession::class), |
|
|
|
|
$c->get(\OCP\IConfig::class), |
|
|
|
|
$c->get(OC\Security\Bruteforce\Throttler::class) |
|
|
|
|
$c->get(IThrottler::class) |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
$dispatcher->registerMiddleware( |
|
|
|
|