Add TokensServiceProvider

This commit is contained in:
Romain Neutron
2013-04-30 18:02:09 +02:00
parent 9651640bc7
commit cf0f13d9c9
21 changed files with 138 additions and 83 deletions

View File

@@ -38,7 +38,7 @@ class Session_Authentication_Token implements Session_Authentication_Interface
$this->token = $token;
try {
$datas = random::helloToken($app, $token);
$datas = $app['tokens']->helloToken($token);
$usr_id = $datas['usr_id'];
$this->user = User_Adapter::getInstance($usr_id, $this->app);
} catch (Exception_NotFound $e) {