Make sure to return true here
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 19:51:29 +0000 (13:51 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 21:01:56 +0000 (15:01 -0600)
framework/Token/lib/Horde/Token.php

index ebc486f..0133bfe 100644 (file)
@@ -140,10 +140,13 @@ class Horde_Token
     public function verify($token)
     {
         $this->purge();
+
         if ($this->exists($token)) {
             return false;
         }
-        return $this->add($token);
+
+        $this->add($token);
+        return true;
     }
 
     /**