Skip to content

Commit

Permalink
Merge pull request #215 from sitawit/patch-1
Browse files Browse the repository at this point in the history
Update token.php to fix 'token' validation error
  • Loading branch information
SamMousa committed Sep 1, 2014
2 parents 94e6011 + 79e2ffe commit d05572f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Token.php
Expand Up @@ -86,7 +86,7 @@ public function generateToken()

$this->token = randomChars($length);
$counter = 0;
while (!$this->validate('token'))
while (!$this->validate(array('token')))
{
$this->token = randomChars($length);
$counter++;
Expand Down

0 comments on commit d05572f

Please sign in to comment.