From f41368fff07429f26b028d0c8c041b5e9031bf6c Mon Sep 17 00:00:00 2001 From: Jovanni Lo Date: Sat, 19 May 2018 11:46:25 +0800 Subject: [PATCH] verifyToken remove deleting "force" option The previous code says to delete the `force` option when it's present. It will make that option useless and forcing all request to force => true if omitted by default. --- lib/Authy/AuthyApi.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Authy/AuthyApi.php b/lib/Authy/AuthyApi.php index 611b90b..fb72873 100644 --- a/lib/Authy/AuthyApi.php +++ b/lib/Authy/AuthyApi.php @@ -96,8 +96,6 @@ public function verifyToken($authy_id, $token, $opts = array()) { if (! array_key_exists("force", $opts)) { $opts["force"] = "true"; - } else { - unset($opts["force"]); } $token = urlencode($token);