Standardize JWT authentication and finalize Activity Log V3 migration
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
let show_password_text = $state('password'); // password or text
|
||||
|
||||
function sign_in() {
|
||||
$ae_loc.jwt = user_obj.jwt; // Store the JSON Web Token
|
||||
$ae_loc.person_id = person_id; // Set the person_id in the ae_loc store
|
||||
$ae_loc.person = person_obj; // Store the full person object for reference
|
||||
$ae_loc.user_id = user_id; // Set the user_id in the ae_loc store
|
||||
@@ -112,6 +113,7 @@
|
||||
|
||||
function sign_out() {
|
||||
// Clear the session information
|
||||
$ae_loc.jwt = null;
|
||||
$ae_loc.person_id = null;
|
||||
$ae_loc.person = {};
|
||||
$ae_loc.user_id = null;
|
||||
|
||||
Reference in New Issue
Block a user