This commit is contained in:
commit
96d365f3f4
@ -104,7 +104,7 @@ header("Link: <static/js/bootstrap.min.js>; rel=preload; as=script", false);
|
|||||||
<body>
|
<body>
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<img class="banner-image" src="static/img/logo.png" />
|
<img class="banner-image" src="static/img/logo.svg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
|
@ -248,6 +248,11 @@ function doLoginUser($username) {
|
|||||||
|
|
||||||
if ($resp['status'] == "OK") {
|
if ($resp['status'] == "OK") {
|
||||||
$userinfo = $resp['data'];
|
$userinfo = $resp['data'];
|
||||||
|
session_regenerate_id(true);
|
||||||
|
$newSession = session_id();
|
||||||
|
session_write_close();
|
||||||
|
session_id($newSession);
|
||||||
|
session_start();
|
||||||
$_SESSION['username'] = $username;
|
$_SESSION['username'] = $username;
|
||||||
$_SESSION['uid'] = $userinfo['uid'];
|
$_SESSION['uid'] = $userinfo['uid'];
|
||||||
$_SESSION['email'] = $userinfo['email'];
|
$_SESSION['email'] = $userinfo['email'];
|
||||||
|
@ -24,12 +24,13 @@ header('X-Frame-Options: "DENY"');
|
|||||||
header('Referrer-Policy: "no-referrer, strict-origin-when-cross-origin"');
|
header('Referrer-Policy: "no-referrer, strict-origin-when-cross-origin"');
|
||||||
$SECURE_NONCE = base64_encode(random_bytes(8));
|
$SECURE_NONCE = base64_encode(random_bytes(8));
|
||||||
|
|
||||||
$session_length = 60 * 60; // 1 hour
|
$session_length = 60 * 60 * 2; // 2 hours
|
||||||
|
ini_set('session.gc_maxlifetime', $session_length);
|
||||||
session_set_cookie_params($session_length, "/", null, false, false);
|
session_set_cookie_params($session_length, "/", null, false, false);
|
||||||
|
|
||||||
session_start(); // stick some cookies in it
|
session_start(); // stick some cookies in it
|
||||||
// renew session cookie
|
// renew session cookie
|
||||||
setcookie(session_name(), session_id(), time() + $session_length);
|
//setcookie(session_name(), session_id(), time() + $session_length);
|
||||||
|
|
||||||
$captcha_server = (CAPTCHA_ENABLED === true ? preg_replace("/http(s)?:\/\//", "", CAPTCHA_SERVER) : "");
|
$captcha_server = (CAPTCHA_ENABLED === true ? preg_replace("/http(s)?:\/\//", "", CAPTCHA_SERVER) : "");
|
||||||
if ($_SESSION['mobile'] === TRUE) {
|
if ($_SESSION['mobile'] === TRUE) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Font Awesome Free 5.0.12 by @fontawesome - https://fontawesome.com
|
* Font Awesome Free 5.0.13 by @fontawesome - https://fontawesome.com
|
||||||
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||||
*/
|
*/
|
||||||
svg:not(:root).svg-inline--fa {
|
svg:not(:root).svg-inline--fa {
|
||||||
|
4
static/js/fontawesome-all.min.js
vendored
4
static/js/fontawesome-all.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user