Advertisement
Guest User

Untitled

a guest
May 20th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $(document).ready(function(){
  2. $("#login").submit(function(e){
  3. e.preventDefault();
  4.  
  5. var username = $("#username").val();
  6. var password = $("#password").val();
  7.  
  8. if(username == "user" && sha256(password) == "3f8da8d150df71f64db5f8e96438c5672934129bf705c4ce5273425bf1ac5d62") {
  9. document.location = "success.php?password=" + password;
  10. } else {
  11. alert("Incorrect username and password!");
  12. }
  13.  
  14. });
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement