Difference between revisions of "NationStates:Login"

From NSWiki
Jump to: navigation, search
m (Protected "NationStates:Login" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m
Line 1: Line 1:
<shtml version="2" keyname="afforess" hash="e0ff2507daffdbf115093fee74ef49cee7266e280ae3bc4574065015190c8b58"><input id='nation_name' placeholder='Nation Name' type='text' style='width:350px;height:24px;'></input><button class='btn' style='margin-left:5px;margin-top: -3px;' id='nation_enter'>Locate Nation</button>
+
<shtml version="2" keyname="afforess" hash="a70f4722f6815084d1600d9af88c6290287a4ce4a65f3e08c54c9041f9841932"><input id='nation_name' placeholder='Nation Name' type='text' style='width:350px;height:24px;'></input><button class='btn' style='margin-left:5px;margin-top: -3px;' id='nation_enter'>Locate Nation</button>
 
<p id='login_error' style='color:red; font-weight:bold; display:none;'>An Error Occured</p>
 
<p id='login_error' style='color:red; font-weight:bold; display:none;'>An Error Occured</p>
  
Line 39: Line 39:
 
+ "&password=" + password, function(data) {
 
+ "&password=" + password, function(data) {
 
console.log("Accepted login");
 
console.log("Accepted login");
$.get("http://nswiki.org/index.php?title=Special:UserLogin" function(data) {
+
$.get("http://nswiki.org/index.php?title=Special:UserLogin", function(data) {
 
var token = $("input[name='wpLoginToken']").val();
 
var token = $("input[name='wpLoginToken']").val();
 
console.log("Lokin token: " + token);
 
console.log("Lokin token: " + token);

Revision as of 20:21, 22 January 2014