forked from shaba/openuds
Changed logout so it receives an string as result
This commit is contained in:
parent
4079169542
commit
e5e734b4b8
@ -45,7 +45,7 @@ namespace UdsAdmin.xmlrpc
|
|||||||
SimpleInfo[] GetAdminAuths(string locale);
|
SimpleInfo[] GetAdminAuths(string locale);
|
||||||
|
|
||||||
[XmlRpcMethod("logout")]
|
[XmlRpcMethod("logout")]
|
||||||
bool Logout(string credentials);
|
string Logout(string credentials);
|
||||||
|
|
||||||
// Service provider related methods
|
// Service provider related methods
|
||||||
[XmlRpcMethod("getServiceProvidersTypes")]
|
[XmlRpcMethod("getServiceProvidersTypes")]
|
||||||
|
@ -239,12 +239,13 @@ namespace UdsAdmin.xmlrpc
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Logout()
|
public static string Logout()
|
||||||
{
|
{
|
||||||
|
string ret = "";
|
||||||
if (s != null)
|
if (s != null)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
s.Logout(credentials);
|
ret = s.Logout(credentials);
|
||||||
credentials = "";
|
credentials = "";
|
||||||
s = null;
|
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 :-)
|
// If credentials are not valid, or we can't reach server, we are exiting so we don't care :-)
|
||||||
}
|
}
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Authenticators
|
// Authenticators
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user