그래서 EPi 서버 대신 사용자 정의 로그인 페이지를 만들려고합니다. 지금은이 tutoiral사용자 로그인 페이지 episerver
를 사용하여 사용자 정의 컨트롤러와 모델과 페이지를 만들었습니다 https://world.episerver.com/blogs/Daniel-Ovaska/Dates/2016/6/creating-a-custom-login-page/
내가 브라우저 창에 http://localhost:53067/LoginPage/Index를 입력 할 때 것은 내가 아래 코드
public ActionResult Index(LoginPage currentPage, [FromUri]string ReturnUrl)
{
/* Implementation of action. You can create your own view model class that you pass to the view or
* you can pass the page type for simpler templates */
var model = new LoginModel(currentPage);
model.LoginPostbackData.ReturnUrl = ReturnUrl;
return View(model);
}
에 currenPage null을 얻을 수있다
내가 누락 된 부분을 아는 사람이 있습니까?
'LoginPageController '에 대한 전체 코드를 게시 해주세요. –
@Chaudhry 아래 답변을 도왔습니까? 그렇다면 답으로 표시하십시오. :) –