From 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 19 Jan 2026 16:29:41 +0000
Subject: [PATCH] =Refactored window.getTemplate into a full templating class window.jvbTemplates. Refactored CRUD.js, UploadManager.js, FormController.js, PopulateForm.js with that in mind

---
 inc/rest/routes/LoginRoutes.php |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/inc/rest/routes/LoginRoutes.php b/inc/rest/routes/LoginRoutes.php
index 234f231..226692b 100644
--- a/inc/rest/routes/LoginRoutes.php
+++ b/inc/rest/routes/LoginRoutes.php
@@ -154,7 +154,7 @@
 			'user_login'	=> $username,
 			'user_password' => $password,
 			'remember' => $remember
-		], false);
+		], is_ssl());
 
 
 		if (is_wp_error($user)) {
@@ -172,7 +172,7 @@
 
 		// Set auth cookie with remember me flag
 		wp_set_current_user($user->ID);
-		wp_set_auth_cookie($user->ID, $remember);
+		wp_set_auth_cookie($user->ID, $remember, is_ssl());
 
 
 
@@ -370,6 +370,9 @@
 		wp_set_current_user($user->ID);
 		wp_set_auth_cookie($user->ID, true);
 
+		if (session_status() === PHP_SESSION_ACTIVE) {
+			session_regenerate_id(true);
+		}
 		// Store session fingerprint
 		$this->storeSessionFingerprint($user->ID, $request);
 

--
Gitblit v1.10.0