well I have been told to have a simple login for access to a file.
I only have access to using javascript and ajax, so yah...
I have a simple login script that works to access the file, but its nnot secure, and thats more or less fine(someone can just look at the js file)
Now my problem is that I need to make the available log ins to be editable, (adding/removing, and edit), is that even possible with just javascript/ajax?
-saber
I only have access to using javascript and ajax, so yah...
I have a simple login script that works to access the file, but its nnot secure, and thats more or less fine(someone can just look at the js file)
| Quote: |
|
function LogIn(){ loggedin=false; username=""; password=""; username=prompt("Username:",""); username=username.toLowerCase(); password=prompt("Password:",""); password=password.toLowerCase(); if (username=="" && password=="") { loggedin=true; window.location=".html"; } if (username=="" && password=="") { loggedin=true; window.location=".html"; } if (loggedin==false) { alert("Invalid login!"); } } |
Now my problem is that I need to make the available log ins to be editable, (adding/removing, and edit), is that even possible with just javascript/ajax?
-saber
