aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/UserAccountService/UserAccountService.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/UserAccountService/UserAccountService.cs (renamed from OpenSim/Services/UserService/UserService.cs)30
1 files changed, 22 insertions, 8 deletions
diff --git a/OpenSim/Services/UserService/UserService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs
index e8b9fc3..ee9ea94 100644
--- a/OpenSim/Services/UserService/UserService.cs
+++ b/OpenSim/Services/UserAccountService/UserAccountService.cs
@@ -44,31 +44,45 @@ 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
50 public UserAccount GetUserAccount(UUID scopeID, UUID userID) 65 public UserAccount GetUserAccount(UUID scopeID, string email)
51 { 66 {
52 return null; 67 return null;
53 } 68 }
54 69
55 public bool SetHomePosition(UserAccount data, UUID regionID, UUID regionSecret) 70 public UserAccount GetUserAccount(UUID scopeID, UUID userID)
56 { 71 {
57 return false; 72 return null;
58 } 73 }
59 74
60 public bool SetUserAccount(UserAccount data, UUID principalID, string token) 75 public bool SetUserAccount(UserAccount data)
61 { 76 {
62 return false; 77 return false;
63 } 78 }
64 79
65 public bool CreateUserAccount(UserAccount data, UUID principalID, string token) 80 public bool CreateUserAccount(UserAccount data)
66 { 81 {
67 return false; 82 return false;
68 } 83 }
69 84
70 public List<UserAccount> GetUserAccount(UUID scopeID, 85 public List<UserAccount> GetUserAccounts(UUID scopeID, string query)
71 string query)
72 { 86 {
73 return null; 87 return null;
74 } 88 }