Skip to content

Commit 9e312a0

Browse files
committed
fix(auth): correct secondFactorAPI casing to secondFactorApi
Minor consistency fix - method name was secondFactorAPI (uppercase) but should be secondFactorApi (lowercase) to match declaration in Login class.
1 parent 0545479 commit 9e312a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Auth/ResponsiveLoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ private function handleLoginPost(ServerRequestInterface $request): ResponseInter
483483
$loginHandler = $injector?->getInstance(Login::class);
484484
if ($loginHandler && $loginHandler->secondFactorSupported()) {
485485
try {
486-
$message = $loginHandler->secondFactorAPI('blockLogin', 'Second factor API error', [
486+
$message = $loginHandler->secondFactorApi('blockLogin', 'Second factor API error', [
487487
$username,
488488
$secondFactor,
489489
]);

test/Integration/Login/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tests that verify `login.php` and `/auth/login` produce identical behavior.
55
## Running Tests
66

77
```bash
8-
cd /home/i567442/git/horde/base
8+
cd /home/uid/git/horde/base
99

1010
# Run all login parity tests
1111
phpunit test/Integration/Login/LoginParityTest.php

0 commit comments

Comments
 (0)