diff --git a/login.php b/login.php index 68aa116c5..3d29c890e 100644 --- a/login.php +++ b/login.php @@ -186,11 +186,11 @@ $_SESSION['logged'] = true; // Setup encryption session key - if (is_null($user_encryption_ciphertext) && $user_role > 1) { + if (isset($user_encryption_ciphertext) && $user_role > 1) { $site_encryption_master_key = decryptUserSpecificKey($user_encryption_ciphertext, $password); generateUserSessionKey($site_encryption_master_key); - // Setup extension + // Setup extension - currently unused if (is_null($user_extension_key)) { // Extension cookie // Note: Browsers don't accept cookies with SameSite None if they are not HTTPS. @@ -200,6 +200,7 @@ $user_php_session = session_id(); mysqli_query($mysqli, "UPDATE users SET user_php_session = '$user_php_session' WHERE user_id = $user_id"); } + } header("Location: $config_start_page"); @@ -282,14 +283,14 @@ - - + @@ -313,7 +314,7 @@
- + @@ -337,8 +338,8 @@ - @@ -351,10 +352,10 @@ + ?>