add autologin for anonymous user as we need to have on community.egroupware.org

This commit is contained in:
Cornelius Weiß 2006-06-07 18:12:39 +00:00
parent a3e859f85f
commit 177d729959

View File

@ -157,6 +157,13 @@
$submit = True;
}
}
if(!$passwd && ($GLOBALS['egw_info']['server']['auto_anon_login']) && !$_GET['cd'])
{
$_SERVER['PHP_AUTH_USER'] = $login = 'anonymous';
$_SERVER['PHP_AUTH_PW'] = $passwd = 'anonymous';
$passwd_type = 'text';
$submit = True;
}
}
# Apache + mod_ssl style SSL certificate authentication