Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void RequestStartup(TinyIoCContainer container, IPipelines pipelines, NancyContext context)
- {
- base.RequestStartup(container, pipelines, context);
- var formsAuthConfiguration =
- new FormsAuthenticationConfiguration()
- {
- DisableRedirect = true,
- UserMapper = container.Resolve<IUserMapper>()
- };
- FormsAuthentication.Enable(pipelines, formsAuthConfiguration);
- }
Add Comment
Please, Sign In to add comment