Skip to content

Commit f0307ac

Browse files
authored
Update account.html
1 parent b85ce39 commit f0307ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

account.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@
5353
// Simulate checking if the user is logged in
5454
function checkAuth() {
5555
const urlParams = new URLSearchParams(window.location.search);
56-
const authSuccess = urlParams.get('success'); // Example: Scratch Auth might return '?success=true'
57-
56+
const authSuccess = urlParams.get('success');// Example: Scratch Auth might return '?success=true'
57+
const username = params.get('username');
58+
5859
if (authSuccess === 'true') {
5960
// Redirect to index.html if login was successful
6061
localStorage.setItem('loggedIn', 'true');

0 commit comments

Comments
 (0)