Skip to content

Commit

Permalink
Fix MAC is invalid, issue sleeping-owl#212
Browse files Browse the repository at this point in the history
  • Loading branch information
denistorresan committed Oct 1, 2015
1 parent 8402168 commit cbca35e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/SleepingOwl/Admin/Helpers/StartSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ public function getSession(Request $request)
$cookie = $request->cookies->get($session->getName());
if ( ! is_null($cookie))
{
$session->setId($this->encrypter->decrypt($cookie));
try{
$session->setId($this->encrypter->decrypt($cookie));
}
catch (\Exception $exc){}
}

return $session;
}

}
}

0 comments on commit cbca35e

Please sign in to comment.