aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/UserAccountService/UserAccountService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/UserAccountService/UserAccountService.cs')
-rw-r--r--OpenSim/Services/UserAccountService/UserAccountService.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs
index 2e6f7dc..ee9ea94 100644
--- a/OpenSim/Services/UserAccountService/UserAccountService.cs
+++ b/OpenSim/Services/UserAccountService/UserAccountService.cs
@@ -44,6 +44,21 @@ namespace OpenSim.Services.UserAccountService
44 public UserAccount GetUserAccount(UUID scopeID, string firstName, 44 public UserAccount GetUserAccount(UUID scopeID, string firstName,
45 string lastName) 45 string lastName)
46 { 46 {
47 UserAccountData[] d = m_Database.Get(
48 new string[] {"ScopeID", "FirstName", "LastName"},
49 new string[] {scopeID.ToString(), firstName, lastName});
50
51 if (d.Length < 1)
52 return null;
53
54 UserAccount u = new UserAccount();
55 u.FirstName = d[0].FirstName;
56 u.LastName = d[0].LastName;
57 u.PrincipalID = d[0].PrincipalID;
58 u.ScopeID = d[0].ScopeID;
59 u.Email = d[0].Data["Email"].ToString();
60 u.Created = Convert.ToInt32(d[0].Data["Created"].ToString());
61
47 return null; 62 return null;
48 } 63 }
49 64