Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $("#login").submit(function(e){
- e.preventDefault();
- var username = $("#username").val();
- var password = $("#password").val();
- if(username == "user" && sha256(password) == "3f8da8d150df71f64db5f8e96438c5672934129bf705c4ce5273425bf1ac5d62") {
- document.location = "success.php?password=" + password;
- } else {
- alert("Incorrect username and password!");
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement