Fixed mixed-case use in UserAccounts table. Plus some more sanity checks on filling out the UserAccount data.
parent
e09c9fbe14
commit
24ab3e2d5f
|
@ -122,13 +122,18 @@ namespace OpenSim.Services.UserAccountService
|
|||
u.LastName = d.LastName;
|
||||
u.PrincipalID = d.PrincipalID;
|
||||
u.ScopeID = d.ScopeID;
|
||||
if (d.Data.ContainsKey("Email") && d.Data["Email"] != null)
|
||||
u.Email = d.Data["Email"].ToString();
|
||||
else
|
||||
u.Email = string.Empty;
|
||||
u.Created = Convert.ToInt32(d.Data["Created"].ToString());
|
||||
if (d.Data["UserTitle"] != null)
|
||||
if (d.Data.ContainsKey("UserTitle") && d.Data["UserTitle"] != null)
|
||||
u.UserTitle = d.Data["UserTitle"].ToString();
|
||||
else
|
||||
u.UserTitle = string.Empty;
|
||||
|
||||
if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null)
|
||||
{
|
||||
string[] URLs = d.Data["ServiceURLs"].ToString().Split(new char[] { ' ' });
|
||||
u.ServiceURLs = new Dictionary<string, object>();
|
||||
|
||||
|
@ -144,6 +149,9 @@ namespace OpenSim.Services.UserAccountService
|
|||
|
||||
u.ServiceURLs[name] = val;
|
||||
}
|
||||
}
|
||||
else
|
||||
u.ServiceURLs = new Dictionary<string, object>();
|
||||
|
||||
return u;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace OpenSim.Services.UserAccountService
|
|||
{
|
||||
string dllName = String.Empty;
|
||||
string connString = String.Empty;
|
||||
string realm = "useraccounts";
|
||||
string realm = "UserAccounts";
|
||||
|
||||
IConfig dbConfig = config.Configs["DatabaseService"];
|
||||
if (dbConfig != null)
|
||||
|
|
Loading…
Reference in New Issue