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:
parent
4079169542
commit
e5e734b4b8
@ -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")]
|
||||
|
@ -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
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user