Browse Source

Fix LDAP application class instance created directly

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/18292/head
Christoph Wurst 6 years ago
parent
commit
9772dbd19e
No known key found for this signature in database GPG Key ID: CC42AC2A7F0E56D8
  1. 5
      apps/user_ldap/appinfo/routes.php

5
apps/user_ldap/appinfo/routes.php

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@ -49,7 +49,8 @@ $application->registerRoutes($this, [
]
]);
$application = new OCA\User_LDAP\AppInfo\Application();
/** @var \OCA\User_LDAP\AppInfo\Application $application */
$application = \OC::$server->query(\OCA\User_LDAP\AppInfo\Application::class);
$application->registerRoutes($this, [
'routes' => [
['name' => 'renewPassword#tryRenewPassword', 'url' => '/renewpassword', 'verb' => 'POST'],

Loading…
Cancel
Save