allow to save user name
This commit is contained in:
parent
6c2b548424
commit
5cd7d6b756
|
@ -519,7 +519,7 @@ if(!empty($_POST['checklogin'])) {
|
||||||
if (isset($_POST['rememberLogin']) && ($_POST['rememberLogin'] == 'on')) {
|
if (isset($_POST['rememberLogin']) && ($_POST['rememberLogin'] == 'on')) {
|
||||||
setcookie('lam_login_name', $_POST['username'], time() + 60*60*24*365);
|
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);
|
setcookie('lam_login_name', '', time() + 60*60*24*365);
|
||||||
}
|
}
|
||||||
if($_POST['passwd'] == "") {
|
if($_POST['passwd'] == "") {
|
||||||
|
|
Loading…
Reference in New Issue