File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 70
70
}
71
71
</ style >
72
72
< script >
73
- const secretCode = '972' ;
73
+ // Generate a random 3-digit number
74
+ function generateThreeDigitCode ( ) {
75
+ return Math . floor ( 100 + Math . random ( ) * 900 ) ;
76
+ }
77
+
78
+ const secretCode = generateThreeDigitCode ( ) ;
74
79
75
80
// Generate a key by shifting the baseKey based on the secret code
76
81
function generateKeyFromCode ( code ) {
161
166
const messageBox = document . getElementById ( "apiMessage" ) ;
162
167
const redirectLocation = encodeURIComponent ( window . location . href ) ;
163
168
164
- const authUrl = `https://ubbload.netlify.app/login?redirect=${ redirectLocation } ` ;
169
+ const authUrl = `https://ubbload.netlify.app/login?redirect=${ redirectLocation } &code= ${ secretCode } ` ;
165
170
166
171
messageBox . style . color = "green" ;
167
172
messageBox . textContent = "Redirecting to APIAuth login (ubbload)... Follow the steps there." ;
You can’t perform that action at this time.
0 commit comments