includes/clientside/static/login.js
changeset 824 28d9fbcd4f0d
parent 816 44b8446533e1
child 843 4415e50e4e84
--- a/includes/clientside/static/login.js	Sun Jan 25 20:35:06 2009 -0500
+++ b/includes/clientside/static/login.js	Sun Jan 25 20:35:32 2009 -0500
@@ -366,7 +366,7 @@
 {
   json = toJSONString(json);
   json = ajaxEscape(json);
-  ajaxPost(makeUrlNS('Special', 'Login/action.json'), 'r=' + json, function()
+  ajaxPost(makeUrlNS('Special', 'Login/action.json'), 'r=' + json, function(ajax)
     {
       if ( ajax.readyState == 4 && ajax.status == 200 )
       {
@@ -1298,6 +1298,7 @@
     {
       auth_level = level;
     }
+    window.location.hash = '#auth:' + key;
   }
   else
   {
@@ -1314,5 +1315,6 @@
         }
       }
     }
+    window.location.hash = '#auth:false';
   }
 }