mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
check some bugs
This commit is contained in:
@@ -77,7 +77,7 @@ namespace OpenAuth.App.SSO
|
||||
/// <param name="username"><3E>û<EFBFBD><C3BB><EFBFBD></param>
|
||||
/// <param name="pwd"><3E><><EFBFBD><EFBFBD></param>
|
||||
/// <returns>System.String.</returns>
|
||||
public static string Login(string appKey, string username, string pwd)
|
||||
public static LoginResult Login(string appKey, string username, string pwd)
|
||||
{
|
||||
var requestUri = "/SSO/Login/Check";
|
||||
|
||||
@@ -91,18 +91,12 @@ namespace OpenAuth.App.SSO
|
||||
}, requestUri);
|
||||
|
||||
var result = JsonHelper.Instance.Deserialize<LoginResult>(value);
|
||||
if (result.Success)
|
||||
{
|
||||
return result.Token;
|
||||
}
|
||||
else
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
return result;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return string.Empty;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user