mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 02:44:44 +08:00
这是有史以来最艰难的一次提交,不生则死!
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
using Infrastructure;
|
||||
|
||||
namespace OpenAuth.App.SSO
|
||||
{
|
||||
public class LoginResult
|
||||
public class LoginResult :Response<string>
|
||||
{
|
||||
public bool Success;
|
||||
public string ErrorMsg;
|
||||
public string ReturnUrl;
|
||||
public string Token;
|
||||
}
|
||||
|
||||
@@ -62,14 +62,14 @@ namespace OpenAuth.App.SSO
|
||||
//<2F><><EFBFBD><EFBFBD>Session
|
||||
new ObjCacheProvider<UserAuthSession>().Create(currentSession.Token, currentSession, DateTime.Now.AddDays(10));
|
||||
|
||||
result.Success = true;
|
||||
result.Code = 200;
|
||||
result.ReturnUrl = appInfo.ReturnUrl;
|
||||
result.Token = currentSession.Token;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
result.Success = false;
|
||||
result.ErrorMsg = ex.Message;
|
||||
result.Code = 500;
|
||||
result.Message = ex.Message;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user