Authored by 於志远

去掉sso中的session

... ... @@ -103,7 +103,7 @@ class Controller_Associate extends Controller_Abstract
break;
}
// 执行登录操作,写入Cookie及Session
Facade_Auth::login($data['uid']);
Facade_Auth::login($data['uid'], false, false);
/* 保存第三方应用授权过用户的访问信息 */
$token = $this->_request->post('token', false);
... ...
... ... @@ -26,7 +26,7 @@ class Controller_Login extends Controller_Abstract
//$result = Facade_Auth::checkLogin($account, $password);
//@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|'.$account.'|'.$password."\n", FILE_APPEND);
$area = trim($this->_request->area) ;
$result = Facade_Auth::checkLogin($account, $password, true, 0 , true, $area);
$result = Facade_Auth::checkLogin($account, $password, false, 0 , false, $area);
if ( isset($result['uid']) )
{
//构造信息返回
... ...