Ignore:
Timestamp:
06/15/12 14:49:24 (12 years ago)
Author:
acoutinho
Message:

Ticket #2766 - Melhorias e correcoes na api rest, criacao de novo cliente

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.1-3/prototype/library/tonic/lib/tonic.php

    r6351 r6523  
    11<?php 
     2 
     3use prototype\api\Config as Config; 
     4 
    25/* 
    36 * This file is part of the Tonic. 
     
    433436        $arrayData = array(); 
    434437        if($data){ 
    435             $arrayIndex = explode('&', $data); 
     438            $arrayIndex = explode('&', urldecode($data)); 
    436439            foreach($arrayIndex as $key => $value){ 
    437440                list($i,$val) = explode ('=', $value); 
     
    655658            $token = $oauth->getBearerToken(); 
    656659            $oauth->verifyAccessToken($token); 
     660 
     661            if(!Config::me('uidNumber')) 
     662                throw new ResponseException('Session experired.', Response::UNAUTHORIZED); 
    657663        }  
    658664        catch (OAuth2ServerException $oauthError)  
     
    660666                $oauthError->sendHttpResponse(); 
    661667        } 
     668         
    662669    } 
    663670     
Note: See TracChangeset for help on using the changeset viewer.