Skip to content

Commit

Permalink
Update external_id
Browse files Browse the repository at this point in the history
  • Loading branch information
verschoren committed Feb 14, 2024
1 parent 727c32f commit 6528706
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
20 changes: 20 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,11 @@ select {
border-color: rgb(252 165 165 / var(--tw-border-opacity));
}

.border-blue-gray-600 {
--tw-border-opacity: 1;
border-color: rgb(71 85 105 / var(--tw-border-opacity));
}

.bg-\[\#282c34\] {
--tw-bg-opacity: 1;
background-color: rgb(40 44 52 / var(--tw-bg-opacity));
Expand Down Expand Up @@ -1898,6 +1903,21 @@ select {
color: rgb(133 77 14 / var(--tw-text-opacity));
}

.text-blue-gray-400 {
--tw-text-opacity: 1;
color: rgb(148 163 184 / var(--tw-text-opacity));
}

.text-blue-gray-200 {
--tw-text-opacity: 1;
color: rgb(226 232 240 / var(--tw-text-opacity));
}

.text-blue-gray-600 {
--tw-text-opacity: 1;
color: rgb(71 85 105 / var(--tw-text-opacity));
}

.underline {
text-decoration-line: underline;
}
Expand Down
9 changes: 3 additions & 6 deletions docs/messaging.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ <h2 class="text-xl font-medium text-blue-gray-900">User Info</h2>

<div class="sm:col-span-6">
<label for="username" class="block text-sm font-medium text-blue-gray-900"> External ID </label>
<div class="mt-1 flex rounded-md shadow-sm">
<span class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-blue-gray-300 bg-blue-gray-50 text-blue-gray-500 sm:text-sm"> UUID</span>
<input type="text" readonly name="external_id" id="external_id" autocomplete="username" value="" class="flex-1 block w-full min-w-0 border-blue-gray-300 rounded-none rounded-r-md text-blue-gray-900 sm:text-sm focus:ring-gray-50 focus:border-blue-gray-300 bg-gray-50">
</div>
<input type="text" readonly name="external_id" id="external_id" autocomplete="username" value="" class="mt-1 flex-1 block w-full min-w-0 border-blue-gray-300 rounded-md text-gray-500 sm:text-sm focus:ring-gray-50 focus:border-blue-gray-300 bg-gray-50">
</div>
</div>

Expand Down Expand Up @@ -197,11 +194,11 @@ <h1 class="text-sm font-medium pb-2">Subscribe to Internal Note</h1>
}

function Login(type){
$('#external_id').val('user_'+$('#email').val());
$('#external_id').val(btoa($('#email').val()));
var user = {
name: $('#name').val(),
email: $('#email').val(),
external_id: 'user_'+$('#email').val()
external_id: btoa($('#email').val())
}
console.log("User logged in", user);

Expand Down
2 changes: 1 addition & 1 deletion messaging-worker/src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function respondMessaging(json,env,type) {
scope: "user",
name: json.user_name,
email: json.user_email,
external_id: "user_" + json.user_email,
external_id: json.external_id,
exp: Math.floor(new Date().getTime() / 1000.0) + 86400,
});
} else {
Expand Down

0 comments on commit 6528706

Please sign in to comment.