Skip to content

Commit 95590be

Browse files
authored
Update account.html
1 parent c23e998 commit 95590be

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/account.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
}
101101

102102
// Function to encode the username using btoa() (Base64 encoding)
103-
function decodeUsername(encodedUsername) {
104-
return btoa(encodedUsername); // Using atob to encode the Base64 username
103+
function encodeUsername(username) {
104+
return btoa(username); // Using btoa to encode the username to Base64
105105
}
106106

107107
// On page load, check if the user is logged in
@@ -185,11 +185,11 @@
185185
}
186186

187187
function devToken() {
188-
const usernameEnc = localStorage.getItem('usernameEnc');
189-
const username = localStorage.getItem('username');
190-
const joined = "Your dev token is:" + username + "- Make sure to only share it with Coding Hut services and partners or else you can get hacked!";
191-
devTokens.style.color = "green";
192-
devTokens.textContent = "Your dev token is:" + username + "- Make sure to only share it with Coding Hut services and partners or else you can get hacked!";
188+
const usernameEnc = localStorage.getItem('usernameEnc');
189+
const username = localStorage.getItem('username');
190+
const joined = "Your dev token is:" + username + "- Make sure to only share it with Coding Hut services and partners or else you can get hacked!";
191+
devTokens.style.color = "green";
192+
devTokens.textContent = "Your dev token is:" + username + "- Make sure to only share it with Coding Hut services and partners or else you can get hacked!";
193193
}
194194
</script>
195195
</head>

0 commit comments

Comments
 (0)