File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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
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 >
You can’t perform that action at this time.
0 commit comments