From: Philipp Holzer Date: Wed, 1 May 2019 15:05:46 +0000 (+0200) Subject: Rename to AccountManagementControlDocument X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=08d4c7f1a9da670b0dcf22daac5c05b88df2ddff;p=friendica.git Rename to AccountManagementControlDocument --- diff --git a/src/App/Router.php b/src/App/Router.php index 0785de1b98..039d3e2cf9 100644 --- a/src/App/Router.php +++ b/src/App/Router.php @@ -41,7 +41,7 @@ class Router public function collectRoutes() { $this->routeCollector->addRoute(['GET', 'POST'], '/itemsource[/{guid}]', Module\Itemsource::class); - $this->routeCollector->addRoute(['GET'], '/amcd', Module\AccMgmtControlDoc::class); + $this->routeCollector->addRoute(['GET'], '/amcd', Module\AccountManagementControlDocument::class); } public function __construct(RouteCollector $routeCollector = null) diff --git a/src/Module/AccMgmtControlDoc.php b/src/Module/AccMgmtControlDoc.php deleted file mode 100644 index bc7c8e811f..0000000000 --- a/src/Module/AccMgmtControlDoc.php +++ /dev/null @@ -1,67 +0,0 @@ - 1, - 'sessionstatus' => [ - 'method' => 'GET', - 'path' => '/session', - ], - 'auth-methods' => [ - 'username-password-form' => [ - 'connect' => [ - 'method' => 'POST', - 'path' => '/login', - 'params' => [ - 'username' => 'login-name', - 'password' => 'password', - ], - 'onsuccess' => [ - 'action' => 'reload', - ], - ], - 'disconnect' => [ - 'method' => 'GET', - 'path' => '/logout', - ], - ], - ], - 'methods' => [ - 'username-password-form' => [ - 'connect' => [ - 'method' => 'POST', - 'path' => '/login', - 'params' => [ - 'username' => 'login-name', - 'password' => 'password', - ], - 'onsuccess' => [ - 'action' => 'reload', - ], - ], - 'disconnect' => [ - 'method' => 'GET', - 'path' => '/logout', - ], - ], - ], - ]; - - echo json_encode($output); - exit(); - } -} diff --git a/src/Module/AccountManagementControlDocument.php b/src/Module/AccountManagementControlDocument.php new file mode 100644 index 0000000000..2e2a9e496d --- /dev/null +++ b/src/Module/AccountManagementControlDocument.php @@ -0,0 +1,65 @@ + 1, + 'sessionstatus' => [ + 'method' => 'GET', + 'path' => '/session', + ], + 'auth-methods' => [ + 'username-password-form' => [ + 'connect' => [ + 'method' => 'POST', + 'path' => '/login', + 'params' => [ + 'username' => 'login-name', + 'password' => 'password', + ], + 'onsuccess' => [ + 'action' => 'reload', + ], + ], + 'disconnect' => [ + 'method' => 'GET', + 'path' => '/logout', + ], + ], + ], + 'methods' => [ + 'username-password-form' => [ + 'connect' => [ + 'method' => 'POST', + 'path' => '/login', + 'params' => [ + 'username' => 'login-name', + 'password' => 'password', + ], + 'onsuccess' => [ + 'action' => 'reload', + ], + ], + 'disconnect' => [ + 'method' => 'GET', + 'path' => '/logout', + ], + ], + ], + ]; + + echo json_encode($output); + exit(); + } +}