Skip to content

Commit 559226d

Browse files
Merge pull request #18955 from kamil-tekiela/Typo-in-accountLocking
Fix wrong param name in Account locking controllers Fixes #18954
2 parents 917c7a1 + 2e90793 commit 559226d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Controllers/Server/Privileges/AccountLockController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
final class AccountLockController extends AbstractController
1919
{
20-
public function __construct(ResponseRenderer $response, Template $template, private AccountLocking $model)
20+
public function __construct(ResponseRenderer $response, Template $template, private AccountLocking $accountLocking)
2121
{
2222
parent::__construct($response, $template);
2323
}
@@ -34,7 +34,7 @@ public function __invoke(ServerRequest $request): void
3434
$hostName = $request->getParsedBodyParam('hostname');
3535

3636
try {
37-
$this->model->lock($userName, $hostName);
37+
$this->accountLocking->lock($userName, $hostName);
3838
} catch (Throwable $exception) {
3939
$this->response->setStatusCode(StatusCodeInterface::STATUS_BAD_REQUEST);
4040
$this->response->setRequestStatus(false);

src/Controllers/Server/Privileges/AccountUnlockController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
final class AccountUnlockController extends AbstractController
1919
{
20-
public function __construct(ResponseRenderer $response, Template $template, private AccountLocking $model)
20+
public function __construct(ResponseRenderer $response, Template $template, private AccountLocking $accountLocking)
2121
{
2222
parent::__construct($response, $template);
2323
}
@@ -34,7 +34,7 @@ public function __invoke(ServerRequest $request): void
3434
$hostName = $request->getParsedBodyParam('hostname');
3535

3636
try {
37-
$this->model->unlock($userName, $hostName);
37+
$this->accountLocking->unlock($userName, $hostName);
3838
} catch (Throwable $exception) {
3939
$this->response->setStatusCode(StatusCodeInterface::STATUS_BAD_REQUEST);
4040
$this->response->setRequestStatus(false);

0 commit comments

Comments
 (0)