Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-03-27 09:49:48 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-03-27 09:49:48 +0300
commit5debd0a024d017f818364f92b4216474f5456cec (patch)
tree80692383cedbffe52052457f9cdf6cda84286ce4 /lib/Provider/TotpProvider.php
parentc88a9e206b2f11e11cb8e95703081a93ae5f2f30 (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.php5
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);
}