mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Implement region registration with authentication
This commit is contained in:
@@ -159,6 +159,7 @@ namespace OpenSim.Services.Interfaces
|
||||
public byte Access;
|
||||
public int Maturity;
|
||||
public string RegionSecret;
|
||||
public string Token;
|
||||
|
||||
public GridRegion()
|
||||
{
|
||||
@@ -306,6 +307,7 @@ namespace OpenSim.Services.Interfaces
|
||||
kvp["access"] = Access.ToString();
|
||||
kvp["regionSecret"] = RegionSecret;
|
||||
kvp["owner_uuid"] = EstateOwner.ToString();
|
||||
kvp["token"] = Token.ToString();
|
||||
// Maturity doesn't seem to exist in the DB
|
||||
return kvp;
|
||||
}
|
||||
@@ -363,6 +365,9 @@ namespace OpenSim.Services.Interfaces
|
||||
if (kvp.ContainsKey("owner_uuid"))
|
||||
EstateOwner = new UUID(kvp["owner_uuid"].ToString());
|
||||
|
||||
if (kvp.ContainsKey("token"))
|
||||
Token = kvp["token"].ToString();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user