Php Parse.com-如何自己管理用户登录?
我正在为我公司的员工在网络和安卓上写一个apprun,我想用Parse.com来存储数据 但我想用我公司的MYSQL数据库来检查我的员工帐户和密码是否正确 如果我的服务器上有一个php文件, 例如:Php Parse.com-如何自己管理用户登录?,php,android,parse-platform,Php,Android,Parse Platform,我正在为我公司的员工在网络和安卓上写一个apprun,我想用Parse.com来存储数据 但我想用我公司的MYSQL数据库来检查我的员工帐户和密码是否正确 如果我的服务器上有一个php文件, 例如: <?php $account=$_POST['account']; $pw=$_POST['pw']; if (checkifpwiscorrect($account,$pw)==true) { //how can the user also log in to Parse } el
<?php
$account=$_POST['account'];
$pw=$_POST['pw'];
if (checkifpwiscorrect($account,$pw)==true) {
//how can the user also log in to Parse
} else {
// account or password wrong
}
?>
如何登录以分析帐户和密码是否正确?这里是一个实际使用restClient类请求方法的登录函数
public function login($username, $password) {
if (!empty($username) || !empty($password)) {
$request = $this->request(array(
'method' => 'GET',
'requestUrl' => 'login',
'data' => array(
'username' => $username,
'password' => $password
)
));
return $request;
} else {
$this->throwError('username and password field are required for the login method');
}
}