<기능개선>
1. PMS NO : 2. (주요)작업내용 (1) 로그인 후 Account/login 입장허용된 부분 예외처리
This commit is contained in:
parent
2efcb78b4b
commit
a81f39ed46
|
|
@ -20,6 +20,14 @@ namespace NP.BO.Controllers
|
||||||
}
|
}
|
||||||
//[AllowAnonymous]
|
//[AllowAnonymous]
|
||||||
public ActionResult Index(VMUser vm, bool istimeout = false)
|
public ActionResult Index(VMUser vm, bool istimeout = false)
|
||||||
|
{
|
||||||
|
int userno = SUserInfo != null ? SUserInfo.UserNo : 0;
|
||||||
|
|
||||||
|
if(userno >0)
|
||||||
|
{
|
||||||
|
Response.Redirect("~/");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
ViewBag.IsTimeOut = istimeout;
|
ViewBag.IsTimeOut = istimeout;
|
||||||
if (Request.IsAjaxRequest())
|
if (Request.IsAjaxRequest())
|
||||||
|
|
@ -30,9 +38,9 @@ namespace NP.BO.Controllers
|
||||||
{
|
{
|
||||||
vm.SavedId = CookieGet("SavedId", "");
|
vm.SavedId = CookieGet("SavedId", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 로그인 실패 카운트 초기화
|
// 로그인 실패 카운트 초기화
|
||||||
vm.logincnt = 0;
|
vm.logincnt = 0;
|
||||||
|
}
|
||||||
return View(vm);
|
return View(vm);
|
||||||
}
|
}
|
||||||
public JsonResult PassGet(String pw)
|
public JsonResult PassGet(String pw)
|
||||||
|
|
|
||||||
|
|
@ -40,11 +40,20 @@ namespace NP.FO.Controllers
|
||||||
return View(vm);
|
return View(vm);
|
||||||
}
|
}
|
||||||
public ActionResult Index(VMUser vm){
|
public ActionResult Index(VMUser vm){
|
||||||
|
int userno = SUserInfo != null ? SUserInfo.UserNo : 0;
|
||||||
|
|
||||||
|
if (userno > 0)
|
||||||
|
{
|
||||||
|
Response.Redirect("~/");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
ViewBag.naverClientID = naverClientID;
|
ViewBag.naverClientID = naverClientID;
|
||||||
ViewBag.kakaoClientID = kakaoClientID;
|
ViewBag.kakaoClientID = kakaoClientID;
|
||||||
ViewBag.googleClientID = googleClientID;
|
ViewBag.googleClientID = googleClientID;
|
||||||
|
|
||||||
if (Request.IsAjaxRequest()){
|
if (Request.IsAjaxRequest())
|
||||||
|
{
|
||||||
return JsonError<String>(Base.ENUM.JSONCode.Error, "403:" + Request.Url.AbsolutePath, "0112");
|
return JsonError<String>(Base.ENUM.JSONCode.Error, "403:" + Request.Url.AbsolutePath, "0112");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -67,9 +76,11 @@ namespace NP.FO.Controllers
|
||||||
}
|
}
|
||||||
ViewBag.SavedId = CookieGet("savedid", "");
|
ViewBag.SavedId = CookieGet("savedid", "");
|
||||||
|
|
||||||
return View(vm);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return View(vm);
|
||||||
|
}
|
||||||
private ActionResult RedirectToLocal(string returnUrl){
|
private ActionResult RedirectToLocal(string returnUrl){
|
||||||
if (Url.IsLocalUrl(returnUrl)){return Redirect(returnUrl);}
|
if (Url.IsLocalUrl(returnUrl)){return Redirect(returnUrl);}
|
||||||
else {return RedirectToAction(nameof(HomeController.Index), "Home");}
|
else {return RedirectToAction(nameof(HomeController.Index), "Home");}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue