Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Commit

Permalink
patch verify
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Nov 1, 2017
1 parent 04a4215 commit a69452c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SDK/Corundum.php
Expand Up @@ -500,9 +500,10 @@ protected function tokenUpdate(string $user, Slice $slice): Slice
{
try
{
$token = $this->refreshToken($user);
$token = $this->refreshToken($user);
$verify = $this->verify($token);

if (!$this->verify($token))
if (!$verify || !$verify->getRequired('verify'))
{
throw new Invalid('The token isn\'t verified');
}
Expand Down

0 comments on commit a69452c

Please sign in to comment.