forked from extern/egroupware
changed data representation of remember cookie
This commit is contained in:
parent
d15dba7cee
commit
8988eb5de2
12
login.php
12
login.php
@ -147,13 +147,13 @@
|
|||||||
|
|
||||||
if($GLOBALS['egw_info']['server']['allow_cookie_auth'])
|
if($GLOBALS['egw_info']['server']['allow_cookie_auth'])
|
||||||
{
|
{
|
||||||
$eGW_remember = unserialize(stripslashes($_COOKIE['eGW_remember']));
|
$eGW_remember = explode('::::',stripslashes($_COOKIE['eGW_remember']));
|
||||||
|
|
||||||
if($eGW_remember['login'] && $eGW_remember['passwd'] && $eGW_remember['passwd_type'])
|
if($eGW_remember[0] && $eGW_remember[1] && $eGW_remember[2])
|
||||||
{
|
{
|
||||||
$_SERVER['PHP_AUTH_USER'] = $login = $eGW_remember['login'];
|
$_SERVER['PHP_AUTH_USER'] = $login = $eGW_remember[0];
|
||||||
$_SERVER['PHP_AUTH_PW'] = $passwd = $eGW_remember['passwd'];
|
$_SERVER['PHP_AUTH_PW'] = $passwd = $eGW_remember[1];
|
||||||
$passwd_type = $eGW_remember['passwd_type'];
|
$passwd_type = $eGW_remember[2];
|
||||||
$submit = True;
|
$submit = True;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -274,7 +274,7 @@
|
|||||||
$remember_time = 2147483647;
|
$remember_time = 2147483647;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$GLOBALS['egw']->session->phpgw_setcookie('eGW_remember',serialize(array(
|
$GLOBALS['egw']->session->phpgw_setcookie('eGW_remember',implode('::::',array(
|
||||||
'login' => $login,
|
'login' => $login,
|
||||||
'passwd' => $passwd,
|
'passwd' => $passwd,
|
||||||
'passwd_type' => $passwd_type)),
|
'passwd_type' => $passwd_type)),
|
||||||
|
Loading…
Reference in New Issue
Block a user