Add passing of account type to session->create (this is a user-only login page)

This commit is contained in:
Miles Lott 2003-11-16 12:15:38 +00:00
parent 54a9bb2960
commit 8f3c33c686

View File

@ -23,7 +23,7 @@
if(file_exists('./header.inc.php'))
{
include('./header.inc.php');
$GLOBALS['phpgw']->sessions = createObject('phpgwapi.sessions');
$GLOBALS['phpgw']->sessions = CreateObject('phpgwapi.sessions');
}
else
{
@ -164,7 +164,7 @@
{
$login .= '@'.$GLOBALS['phpgw_info']['server']['default_domain'];
}
$GLOBALS['sessionid'] = $GLOBALS['phpgw']->session->create($login,$_POST['passwd'],$_POST['passwd_type']);
$GLOBALS['sessionid'] = $GLOBALS['phpgw']->session->create($login,$_POST['passwd'],$_POST['passwd_type'],'u');
if (! isset($GLOBALS['sessionid']) || ! $GLOBALS['sessionid'])
{