diff options
author | Melanie | 2009-12-30 22:23:17 +0000 |
---|---|---|
committer | Melanie | 2009-12-30 22:23:17 +0000 |
commit | b6097ae9a8a4566330d882213179feba6d05da62 (patch) | |
tree | 382dc5f27e9734076f2808b07c8804323cc27f38 /OpenSim/Services/UserAccountService | |
parent | Merge branch 'presence-refactor' of ssh://diva@opensimulator.org/var/git/open... (diff) | |
download | opensim-SC_OLD-b6097ae9a8a4566330d882213179feba6d05da62.zip opensim-SC_OLD-b6097ae9a8a4566330d882213179feba6d05da62.tar.gz opensim-SC_OLD-b6097ae9a8a4566330d882213179feba6d05da62.tar.bz2 opensim-SC_OLD-b6097ae9a8a4566330d882213179feba6d05da62.tar.xz |
Some modifications to user service. Query by name is implemented now
Diffstat (limited to 'OpenSim/Services/UserAccountService')
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 15 |
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 | ||