diff options
-rw-r--r-- | lib/Provider/TotpProvider.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Provider/TotpProvider.php b/lib/Provider/TotpProvider.php index 440cd73..eb24fb8 100644 --- a/lib/Provider/TotpProvider.php +++ b/lib/Provider/TotpProvider.php @@ -73,11 +73,8 @@ class TotpProvider implements IProvider { /** * Verify the given challenge - * - * @param IUser $user - * @param string $challenge */ - public function verifyChallenge(IUser $user, $challenge) { + public function verifyChallenge(IUser $user, string $challenge): bool { $challenge = preg_replace('/[^0-9]/', '', $challenge); return $this->totp->validateSecret($user, $challenge); } |