Guest User

Untitled

a guest
May 5th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. protected override void RequestStartup(TinyIoCContainer container, IPipelines pipelines, NancyContext context)
  2. {
  3. base.RequestStartup(container, pipelines, context);
  4.  
  5. var formsAuthConfiguration =
  6. new FormsAuthenticationConfiguration()
  7. {
  8. DisableRedirect = true,
  9. UserMapper = container.Resolve<IUserMapper>()
  10. };
  11.  
  12. FormsAuthentication.Enable(pipelines, formsAuthConfiguration);
  13. }
Add Comment
Please, Sign In to add comment