This better fix this

This commit is contained in:
calzoneman 2013-04-26 12:55:01 -05:00
parent b9c280ae39
commit 838792c59b
1 changed files with 2 additions and 1 deletions

View File

@ -47,17 +47,18 @@
<script type="text/javascript">
var session = readCookie("sync_session") || "";
var uname = readCookie("sync_uname") || "";
var p = "";
if(uname && session) {
$.getJSON(IO_URL+"/api/json/login?name="+uname+"&session="+session+"&callback=?", function(data) {
if(data.success) {
$(".loginform").remove();
createCookie("sync_uname", uname, 7);
createCookie("sync_session", session, 7);
p = "name=" + uname + "&session=" + session;
}
});
}
var q = "";
var p = "";
$("#login").click(function() {
uname = $("#name").val();
q = "name=" + $("#name").val() + "&pw=" + $("#pw").val();