Check editor accounts.
A new editor needs a username and a password of at least 12 characters. A persistent login needs an unexpired key and an existing account. Removing an account revokes its persistent logins, and its sessions end.
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ if ($queue) session_cache_limiter('nocache');
|
||||
else session_cache_limiter('none');
|
||||
session_set_cookie_params(array('lifetime' => 0, 'path' => '/', 'domain' => cookie_domain(), 'secure' => TRUE, 'httponly' => TRUE, 'samesite' => 'Lax'));
|
||||
session_start();
|
||||
if (isset($_SESSION['editor'])) {
|
||||
if (isset($_SESSION['editor']) && editor_exists($_SESSION['editor'])) {
|
||||
$is_admin = TRUE;
|
||||
$username = $_SESSION['editor'];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user