@cocreate/users
Advanced tools
Comparing version 1.29.0 to 1.30.0
{ | ||
"name": "@cocreate/users", | ||
"version": "1.29.0", | ||
"version": "1.30.0", | ||
"description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.", | ||
@@ -61,9 +61,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@cocreate/actions": "^1.12.4", | ||
"@cocreate/crud-client": "^1.29.0", | ||
"@cocreate/element-prototype": "^1.13.2", | ||
"@cocreate/elements": "^1.26.4", | ||
"@cocreate/local-storage": "^1.10.11", | ||
"@cocreate/render": "^1.32.0" | ||
"@cocreate/actions": "^1.13.0", | ||
"@cocreate/crud-client": "^1.30.0", | ||
"@cocreate/element-prototype": "^1.14.1", | ||
"@cocreate/elements": "^1.27.1", | ||
"@cocreate/local-storage": "^1.11.1", | ||
"@cocreate/render": "^1.34.0" | ||
} | ||
} |
@@ -178,6 +178,8 @@ /*globals CustomEvent, btoa*/ | ||
redirect: (data) => { | ||
if (data.user_id && data.user_id !== Crud.socket.user_id) | ||
if (data.user_id !== Crud.socket.user_id || data.clientId !== Crud.socket.clientId) | ||
return | ||
if (!data.user_id && data.clientId !== Crud.socket.clientId) | ||
return | ||
// if (data.user_id && data.user_id !== Crud.socket.user_id) | ||
// return | ||
// if (!data.user_id && data.clientId !== Crud.socket.clientId) | ||
// return | ||
if (data.userStatus == 'on' || data.userStatus == 'idle') { | ||
@@ -184,0 +186,0 @@ let redirectTag = document.querySelector('[session="true"]'); |
@@ -116,2 +116,3 @@ class CoCreateUser { | ||
user_id: data.user_id, | ||
clientId: data.clientId, | ||
userStatus: data.userStatus, | ||
@@ -126,2 +127,3 @@ token: data.token, | ||
userStatus: data.userStatus, | ||
clientId: data.clientId, | ||
token: data.token, | ||
@@ -128,0 +130,0 @@ organization_id: data.organization_id || socket.organization_id |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
151782
484