Authored by 於志远

sso log

... ... @@ -24,6 +24,7 @@ class Controller_Login extends Controller_Abstract
$fields = trim($this->_request->fields) ;
////2015-4-13 wuxiao app增加国际手机号登录注册
//$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);
if ( isset($result['uid']) )
... ...
... ... @@ -627,7 +627,7 @@ class Facade_Auth
//比对密码是否正确
if(!self::ComparisonPassword($inputPassword, $pwd_info['password'], $pwd_info['password_salt']))
{
$ret = array('code' => Config_Code::$error['pwd_error']['code'], 'message' => Config_Code::$error['pwd_error']['message']);
$ret = array('code' => Config_Code::$error['pwd_error']['code'], 'message' => Config_Code::$error['pwd_error']['message']);
break ;
}
... ...
... ... @@ -86,8 +86,10 @@ class Service_Auth extends Lib_Service
$tag = self::$_tag_auth . strval($type);
$key = sprintf(self::$_key_auth . '%s_%s', $type, $auth_id);
$param = array('type' => $type, 'auth_id' => $auth_id);
return self::service(self::ROUTER)->tag($tag)->key($key)->expire(300)->fetchRow('getAuthByTypeAndAid', $param);
@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|sql|'.self::service(self::ROUTER)->getSql('getAuthByTypeAndAid', $param)."\n", FILE_APPEND);
$ret = self::service(self::ROUTER)->tag($tag)->key($key)->expire(300)->fetchRow('getAuthByTypeAndAid', $param);
@file_put_contents('/tmp/sso',date('Y-m-d H:i:s', time()).'|ret|'.var_export($ret)."\n", FILE_APPEND);
return $ret;
}
/**
... ...