diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-03-27 09:49:48 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-03-27 09:49:48 +0300 |
commit | 5debd0a024d017f818364f92b4216474f5456cec (patch) | |
tree | 80692383cedbffe52052457f9cdf6cda84286ce4 /lib/Provider/TotpProvider.php | |
parent | c88a9e206b2f11e11cb8e95703081a93ae5f2f30 (diff) |
Add missing scalar type hint
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Provider/TotpProvider.php')
-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); } |