diff --git a/client/login.js b/client/login.js
index 242d5fa..a7e4ebf 100644
--- a/client/login.js
+++ b/client/login.js
@@ -2,6 +2,6 @@ function login() {
const usernameInput = document.getElementById('username');
const passwordInput = document.getElementById('password');
- const token = btoa(`${usernameInput.value}:${passwordInput.value}`);
- document.cookie = `token=${String(token)}; path=/`;
+ const credentials = `${usernameInput.value}:${passwordInput.value}`;
+ document.cookie = `credentials=${credentials}; path=/`;
}
\ No newline at end of file
diff --git a/client/rsvps_list.html b/client/rsvps_list.html
index c1c0791..cf280e4 100644
--- a/client/rsvps_list.html
+++ b/client/rsvps_list.html
@@ -6,6 +6,9 @@
Collin and Lucy's Wedding
diff --git a/client/rsvps_list.js b/client/rsvps_list.js
index 6a7b4c5..b922feb 100644
--- a/client/rsvps_list.js
+++ b/client/rsvps_list.js
@@ -8,13 +8,13 @@ function createRsvpEntry(rsvp) {
const newRow = document.createElement('tr');
const attendingColumn = document.createElement('td');
- attendingColumn.innerText = attending ? '✅' : '❌';
+ attendingColumn.innerText = attending ? '\u2705' : '\u274C';
const nameColumn = document.createElement('td');
nameColumn.innerText = member.name;
const childColumn = document.createElement('td');
- childColumn.innerText = member.child ? '👶' : '🧓';
+ childColumn.innerText = member.child ? '\u{1F476}' : '\u{1F474}';
const dietaryPreferencesColumn = document.createElement('td');
dietaryPreferencesColumn.innerText = member.dietaryPreferences.length > 0 ? member.dietaryPreferences : 'n/a';
@@ -32,7 +32,7 @@ async function getRsvps() {
const token = Object.fromEntries(
document.cookie.split(";").map((x) => x.trim().split("="))
)['token']
- const resp = await fetch('/api/rsvps', { headers: { 'Authorization': `Basic ${token}`} });
+ const resp = await fetch('/api/rsvps', { headers: { 'Authorization': `Basic ${String(btoa(token))}`} });
const rsvps = await resp.json()
for (const rsvp of rsvps) {
createRsvpEntry(rsvp);