Skip to content

Commit ea6c9ab

Browse files
authored
Update account.html
1 parent 6133c44 commit ea6c9ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

account.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
function checkAuth() {
5050
const urlParams = new URLSearchParams(window.location.search);
5151
const authSuccess = urlParams.get('success'); // Example: Scratch Auth might return '?success=true'
52+
const username = urlParams.get('username')
53+
localStorage.setItem('username', username)
5254

5355
if (authSuccess === 'true') {
5456
// Redirect to index.html if login was successful

0 commit comments

Comments
 (0)