Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualBean authored Dec 16, 2022
1 parent b8226a8 commit cca4cbe
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Web/jsAuth1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Source
```html
(function() {
document.getElementById('secureLogin').addEventListener('submit', (e) => {
let username = e.target.querySelector('#formUsername').value;
let password = e.target.querySelector('#formPassword').value;

if(username == "Nissen" && password == "LetMeIn") {
top.location = CryptoJS.MD5(username + ":" + password) +".html";
} else {
alert("Forkert brugernavn og/eller kodeord!");
}

e.preventDefault();
})
})();
```

# Solution
Username/Password is shown in the source.

0 comments on commit cca4cbe

Please sign in to comment.