private SetupFormsAuthentication ( IKernel container, IPipelines pipelines ) : void | ||
container | IKernel | |
pipelines | IPipelines | |
리턴 | void |
private void SetupFormsAuthentication(IKernel container, IPipelines pipelines)
{
var formsAuthConfiguration =
new FormsAuthenticationConfiguration
{
RedirectUrl = "~/account/login",
UserMapper = container.Get<IUserMapper>()
};
FormsAuthentication.Enable(pipelines, formsAuthConfiguration);
}