Skip to content

Commit

Permalink
fix(ctf):bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AswinAsok committed Oct 4, 2023
1 parent 96ffbba commit 1a13328
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Pages/CapTF/Level1.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Level1 = () => {
useEffect(() => {
const muid = localStorage.getItem("muid");
if (muid) {
setMuid(muid);
setMuid(muid.trim());
setShowContent(true);
}
}, []);
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/CapTF/Spiderman.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Spiderman = () => {
if (muid) {
setMuid(muid);
setSecretKey(process.env.REACT_APP_CTF_SECRET_KEY); // added this line to store the secret key
const encrypted = btoa(muid + secretKey); // modified this line to use base64 encryption
const encrypted = btoa(muid); // modified this line to use base64 encryption
setFlag(encrypted);
}
}, [secretKey]);
Expand Down

0 comments on commit 1a13328

Please sign in to comment.