Skip to content

Commit

Permalink
fix: adjust createSecret method call to match interface definition
Browse files Browse the repository at this point in the history
- Corrected method call to pass only the IUser argument as required by ITotp::createSecret

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
  • Loading branch information
ernolf committed Jul 22, 2024
1 parent d4ce413 commit 5561f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function enable(int $state, string $code = null, int $tokenLength = 6, in
'state' => ITotp::STATE_DISABLED,
]);
case ITotp::STATE_CREATED:
$secret = $this->totp->createSecret($user, $tokenLength, $hashAlgorithm);
$secret = $this->totp->createSecret($user);

$secretName = $this->getSecretName();
$issuer = $this->getSecretIssuer();
Expand Down

0 comments on commit 5561f71

Please sign in to comment.