diff options
author | My1 <My1@users.noreply.github.com> | 2017-10-31 02:53:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 02:53:18 +0300 |
commit | c231b8ce37ebd37dd8269e60c9873cd31e164737 (patch) | |
tree | 0d619375cc303897062d52422425ba96459e5b86 | |
parent | 2cd10802c2e91788a685249105a37054437d98b7 (diff) |
Update TotpProvider.php
fix issue #189 part 1
-rw-r--r-- | lib/Provider/TotpProvider.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Provider/TotpProvider.php b/lib/Provider/TotpProvider.php index ea18fff..6f8e443 100644 --- a/lib/Provider/TotpProvider.php +++ b/lib/Provider/TotpProvider.php @@ -89,6 +89,7 @@ class TotpProvider implements IProvider { * @param string $challenge */ public function verifyChallenge(IUser $user, $challenge) { + $challenge=preg_replace('/[^0-9]/','',$challenge); return $this->totp->validateSecret($user, $challenge); } |