Guest User

Really Secure™ JavaScript Authenticator

a guest
Mar 29th, 2016
3,669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.alert("LNR Staff Site. Please log in.");
  2. var nick = window.prompt("Enter your Staff NickName.", "");
  3. if (nick == "cerone") {
  4.     var pw = window.prompt("Enter your Staff Password.", "");
  5.     if (pw == "1313") {
  6.         window.alert("Welcome to the Staff Site, Cerone.");
  7.     }
  8.     if (pw != "1313") {
  9.         window.alert("Invalid password. Logging off...");
  10.         top.window.location="../index.html";
  11.     }
  12. }
  13. if (nick == "retnuh") {
  14.     var pw = window.prompt("Enter your Staff Password.", "");
  15.     if (pw == "6535") {
  16.         window.alert("Welcome to the Staff Site, Robert.");
  17.     }
  18.     if (pw != "6535") {
  19.         window.alert("Invalid password. Logging off...");
  20.         top.window.location="../index.html";
  21.     }
  22. }
  23. if (nick != "cerone" && nick != "retnuh") {
  24.     window.alert("Invalid nick! Logging off...");
  25.     top.window.location="../index.html";
  26. }
  27.  
  28. function LogOut() {
  29.     window.alert("Logged out successfully!");
  30.     location.reload();
  31. }
Advertisement
Add Comment
Please, Sign In to add comment