mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
changed data representation of remember cookie
This commit is contained in:
parent
941498004c
commit
6f70043f8d
12
login.php
12
login.php
@ -101,13 +101,13 @@
|
||||
|
||||
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_PW'] = $passwd = $eGW_remember['passwd'];
|
||||
$passwd_type = $eGW_remember['passwd_type'];
|
||||
$_SERVER['PHP_AUTH_USER'] = $login = $eGW_remember[1];
|
||||
$_SERVER['PHP_AUTH_PW'] = $passwd = $eGW_remember[2];
|
||||
$passwd_type = $eGW_remember[3];
|
||||
$submit = True;
|
||||
}
|
||||
}
|
||||
@ -228,7 +228,7 @@
|
||||
$remember_time = 2147483647;
|
||||
break;
|
||||
}
|
||||
$GLOBALS['egw']->session->egw_setcookie('eGW_remember',serialize(array(
|
||||
$GLOBALS['egw']->session->egw_setcookie('eGW_remember',implode('::::',array(
|
||||
'login' => $login,
|
||||
'passwd' => $passwd,
|
||||
'passwd_type' => $passwd_type)),
|
||||
|
Loading…
Reference in New Issue
Block a user