enable remember me
This commit is contained in:
parent
0fc3930be4
commit
aadd636a01
|
@ -515,7 +515,7 @@ class Handler_Public extends Handler {
|
||||||
|
|
||||||
$login = db_escape_string($this->link, $_POST["login"]);
|
$login = db_escape_string($this->link, $_POST["login"]);
|
||||||
$password = $_POST["password"];
|
$password = $_POST["password"];
|
||||||
/* $remember_me = $_POST["remember_me"];
|
$remember_me = $_POST["remember_me"];
|
||||||
|
|
||||||
if ($remember_me) {
|
if ($remember_me) {
|
||||||
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
|
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
|
||||||
|
@ -523,7 +523,7 @@ class Handler_Public extends Handler {
|
||||||
session_set_cookie_params(0);
|
session_set_cookie_params(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@session_start(); */
|
@session_start();
|
||||||
|
|
||||||
if (authenticate_user($this->link, $login, $password)) {
|
if (authenticate_user($this->link, $login, $password)) {
|
||||||
$_POST["password"] = "";
|
$_POST["password"] = "";
|
||||||
|
|
|
@ -221,7 +221,7 @@ function bwLimitChange(elem) {
|
||||||
<label style='display : inline' for="bw_limit"><?php echo __("Use less traffic") ?></label>
|
<label style='display : inline' for="bw_limit"><?php echo __("Use less traffic") ?></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (false && SESSION_COOKIE_LIFETIME > 0) { /* disabled for now */ ?>
|
<?php if (SESSION_COOKIE_LIFETIME > 0) { ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label> </label>
|
<label> </label>
|
||||||
|
|
Loading…
Reference in New Issue