mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-17 19:18:03 +08:00
增加演示版本支持,在web.config中配置即可;
增加自定义出差处理,参考ErrorController
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user