So I am trying to create a custom login page instead of the EPi Server. Right now I have created a custom controller and model and page using this tutoiral
https://world.episerver.com/blogs/Daniel-Ovaska/Dates/2016/6/creating-a-custom-login-page/
The thing is when I type http://localhost:53067/LoginPage/Index in the browser window I get null for the currenPage in the below code
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);
}
Does anyone know what am I missing here?