增加演示版本支持,在web.config中配置即可;

增加自定义出差处理,参考ErrorController
This commit is contained in:
yubaolee
2016-04-25 11:53:21 +08:00
parent 3037c3b1f6
commit 6181f9dd47
22 changed files with 182 additions and 33 deletions

View File

@@ -38,7 +38,7 @@ namespace OpenAuth.App
{
if (!HttpContext.Current.User.Identity.IsAuthenticated)
{
throw new Exception("未登录");
throw new HttpException(401,"未登录");
}
string username = HttpContext.Current.User.Identity.Name;
_service.GetUserAccessed(username);