We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85ce39 commit f0307acCopy full SHA for f0307ac
account.html
@@ -53,8 +53,9 @@
53
// Simulate checking if the user is logged in
54
function checkAuth() {
55
const urlParams = new URLSearchParams(window.location.search);
56
- const authSuccess = urlParams.get('success'); // Example: Scratch Auth might return '?success=true'
57
-
+ const authSuccess = urlParams.get('success');// Example: Scratch Auth might return '?success=true'
+ const username = params.get('username');
58
+
59
if (authSuccess === 'true') {
60
// Redirect to index.html if login was successful
61
localStorage.setItem('loggedIn', 'true');
0 commit comments