Skip to content

Commit d1ee610

Browse files
authored
Update account.html
1 parent 33574cd commit d1ee610

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/account.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@
137137
try {
138138
const res = await fetch(`https://scratch-id.onrender.com/verification/${PC}`);
139139
const data = await res.json();
140-
const plainUsername = data.username;
140+
const key = Object.keys(data)[0]; // Get the first key (the unique ID)
141+
const plainUsername = data[key].user;
141142
const encodedUsername = btoa(plainUsername);
142143

143144
if (encodedUsername === 'YmFubmllNg==') {

0 commit comments

Comments
 (0)