diff --git a/Utils/MyHelper.cs b/Utils/MyHelper.cs index 1d35bda..e678385 100644 --- a/Utils/MyHelper.cs +++ b/Utils/MyHelper.cs @@ -287,14 +287,14 @@ public class MyHelper public static bool checkAuth(IConfiguration Configuration, Microsoft.AspNetCore.Http.HttpContext context) { - //if (!string.IsNullOrEmpty(context.Request.Cookies["user_id"])) - //{ - // return true; - //} + if (!string.IsNullOrEmpty(context.Request.Cookies["user_id"])) + { + return true; + } - //return false; + return false; - return true; + //return true; }