diff options
author | Diva Canto | 2009-09-10 19:56:08 -0700 |
---|---|---|
committer | Diva Canto | 2009-09-10 19:56:08 -0700 |
commit | ce332f235ccc5168cfc44834e16318497c67cdd7 (patch) | |
tree | 27e0f79a50060c981dffd4dbffe5938d70cad2a3 /OpenSim/Server/Handlers/Authorization | |
parent | added AuthorizationRequest and AuthorizationResponse objects for passing Auth... (diff) | |
download | opensim-SC_OLD-ce332f235ccc5168cfc44834e16318497c67cdd7.zip opensim-SC_OLD-ce332f235ccc5168cfc44834e16318497c67cdd7.tar.gz opensim-SC_OLD-ce332f235ccc5168cfc44834e16318497c67cdd7.tar.bz2 opensim-SC_OLD-ce332f235ccc5168cfc44834e16318497c67cdd7.tar.xz |
Changed the interface of IAuthorizationService to get less data.
Diffstat (limited to 'OpenSim/Server/Handlers/Authorization')
-rw-r--r-- | OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs b/OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs index 407a18a..fb079d3 100644 --- a/OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs +++ b/OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs | |||
@@ -60,7 +60,9 @@ namespace OpenSim.Server.Handlers.Authorization | |||
60 | XmlSerializer xs = new XmlSerializer(typeof (AuthorizationRequest)); | 60 | XmlSerializer xs = new XmlSerializer(typeof (AuthorizationRequest)); |
61 | AuthorizationRequest Authorization = (AuthorizationRequest) xs.Deserialize(request); | 61 | AuthorizationRequest Authorization = (AuthorizationRequest) xs.Deserialize(request); |
62 | 62 | ||
63 | AuthorizationResponse result = new AuthorizationResponse(true,Authorization.FirstName + " " + Authorization.SurName + " has been authorized"); | 63 | bool authorized = m_AuthorizationService.IsAuthorizedForRegion(Authorization.ID, Authorization.RegionID); |
64 | |||
65 | AuthorizationResponse result = new AuthorizationResponse(authorized, Authorization.ID + " has been authorized"); | ||
64 | 66 | ||
65 | xs = new XmlSerializer(typeof(AuthorizationResponse)); | 67 | xs = new XmlSerializer(typeof(AuthorizationResponse)); |
66 | return ServerUtils.SerializeResult(xs, result); | 68 | return ServerUtils.SerializeResult(xs, result); |