allow to save user name

This commit is contained in:
Roland Gruber 2013-01-20 19:28:14 +00:00
parent 6c2b548424
commit 5cd7d6b756
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ if(!empty($_POST['checklogin'])) {
if (isset($_POST['rememberLogin']) && ($_POST['rememberLogin'] == 'on')) {
setcookie('lam_login_name', $_POST['username'], time() + 60*60*24*365);
}
else if (isset($_COOKIE['lam_login_name'])) {
else if (isset($_COOKIE['lam_login_name']) && ($_SESSION['config']->getLoginMethod() == LAMConfig::LOGIN_SEARCH)) {
setcookie('lam_login_name', '', time() + 60*60*24*365);
}
if($_POST['passwd'] == "") {