1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-08 21:18:00 +03:00

Changed logout so it receives an string as result

This commit is contained in:
Adolfo Gómez 2012-07-23 14:54:49 +00:00
parent 4079169542
commit e5e734b4b8
3 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,7 @@ namespace UdsAdmin.xmlrpc
SimpleInfo[] GetAdminAuths(string locale);
[XmlRpcMethod("logout")]
bool Logout(string credentials);
string Logout(string credentials);
// Service provider related methods
[XmlRpcMethod("getServiceProvidersTypes")]

View File

@ -239,12 +239,13 @@ namespace UdsAdmin.xmlrpc
}
public static void Logout()
public static string Logout()
{
string ret = "";
if (s != null)
try
{
s.Logout(credentials);
ret = s.Logout(credentials);
credentials = "";
s = null;
}
@ -252,6 +253,7 @@ namespace UdsAdmin.xmlrpc
{
// If credentials are not valid, or we can't reach server, we are exiting so we don't care :-)
}
return ret;
}
// Authenticators