Minor fixes for rendering
This commit is contained in:
@@ -32,7 +32,11 @@ abstract class lnApp_Auth_ORM extends Kohana_Auth_ORM {
|
||||
* @return Model_Account|NULL The user that the token is valid for.
|
||||
*/
|
||||
protected function _get_token_user($token) {
|
||||
list($id,$key) = explode(':',$token,2);
|
||||
try {
|
||||
list($id,$key) = explode(':',$token,2);
|
||||
} catch (Exception $e) {
|
||||
return ORM::factory('Account');
|
||||
}
|
||||
|
||||
$uo = ORM::factory('Account',$id);
|
||||
|
||||
|
Reference in New Issue
Block a user