<3 donovan nascent suport for the new login system. still needs to actually poll /inworld/go.php to get the web key automagically.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1516 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -13,6 +13,7 @@ namespace libsecondlife.TestClient
|
||||
public string FirstName;
|
||||
public string LastName;
|
||||
public string Password;
|
||||
public string WebLoginKey;
|
||||
public string StartLocation;
|
||||
public string MasterName;
|
||||
public LLUUID MasterKey;
|
||||
@@ -100,6 +101,7 @@ namespace libsecondlife.TestClient
|
||||
|
||||
NetworkManager.LoginParams loginParams = client.Network.DefaultLoginParams(
|
||||
account.FirstName, account.LastName, account.Password, "TestClient", contactPerson);
|
||||
loginParams.WebLoginKey = account.WebLoginKey;
|
||||
|
||||
if (!String.IsNullOrEmpty(account.StartLocation))
|
||||
loginParams.Start = account.StartLocation;
|
||||
|
||||
@@ -116,6 +116,16 @@ namespace libsecondlife.TestClient
|
||||
|
||||
accounts.Add(account);
|
||||
}
|
||||
else if (arguments["first"] != null && arguments["last"] != null && arguments["loginkey"] != null)
|
||||
{
|
||||
// Taking a single login off the command-line
|
||||
account = new LoginDetails();
|
||||
account.FirstName = arguments["first"];
|
||||
account.LastName = arguments["last"];
|
||||
account.WebLoginKey = arguments["loginkey"];
|
||||
|
||||
accounts.Add(account);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new CommandLineArgumentsException();
|
||||
|
||||
Reference in New Issue
Block a user