From 13dc865ad1e66bb2ced810b91f6a7579bde37228 Mon Sep 17 00:00:00 2001 From: Nakorn Rientrakrunchai Date: Tue, 21 Jul 2020 10:27:39 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=94=E0=B8=B1=E0=B8=81=E0=B9=80=E0=B8=A3?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=AA=E0=B8=B4=E0=B8=97?= =?UTF-8?q?=E0=B8=98=E0=B8=B4=202=20=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=97?= =?UTF-8?q?=E0=B8=B1=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Utils/MyHelper.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; }