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 923f9f6 commit 8f70d55Copy full SHA for 8f70d55
account.html
@@ -74,8 +74,13 @@
74
function generateThreeDigitCode() {
75
return Math.floor(100 + Math.random() * 900);
76
}
77
+ if (!localStorage.getItem('baseCode')) {
78
+ const secretCode = generateThreeDigitCode();
79
+ localStorage.setItem('baseCode', secretCode);
80
+ } else {
81
+ const secretCode = localStorage.getItem('baseCode');
82
+ }
83
- const secretCode = generateThreeDigitCode();
84
85
// Generate a key by shifting the baseKey based on the secret code
86
function generateKeyFromCode(code) {
0 commit comments