ดักเรื่องสิทธิ 2 บรรทัด
This commit is contained in:
@@ -287,14 +287,14 @@ public class MyHelper
|
|||||||
|
|
||||||
public static bool checkAuth(IConfiguration Configuration, Microsoft.AspNetCore.Http.HttpContext context)
|
public static bool checkAuth(IConfiguration Configuration, Microsoft.AspNetCore.Http.HttpContext context)
|
||||||
{
|
{
|
||||||
//if (!string.IsNullOrEmpty(context.Request.Cookies["user_id"]))
|
if (!string.IsNullOrEmpty(context.Request.Cookies["user_id"]))
|
||||||
//{
|
{
|
||||||
// return true;
|
return true;
|
||||||
//}
|
}
|
||||||
|
|
||||||
//return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
//return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user