Fix login return of sessionid/kp3 for user logins

This commit is contained in:
Miles Lott 2001-08-22 20:01:05 +00:00
parent 55c06c14ad
commit 822b956b80

View File

@ -677,7 +677,10 @@
$rdata = $m->getParam(0);
$data = $rdata->scalarval();
if($data['server_name'])
{
$server_name = $data['server_name']->scalarval();
}
$username = $data['username']->scalarval();
$password = $data['password']->scalarval();
@ -699,7 +702,8 @@
{
$user = $username;
}
list($sessionid,$kp3) = $GLOBALS['phpgw']->session->create($user,$password);
$sessionid = $GLOBALS['phpgw']->session->create($user,$password);
$kp3 = $GLOBALS['phpgw']->session->kp3;
}
if($sessionid && $kp3)