• Posts: 2
  • Joined: 01/10/2013
I am trying to make it so that users have to be logged in with there YAF credentials to view my 'Home' page. I am unsure if this is the proper way to do it, but I have been using the following code in my web.config:

<location path="Home.aspx">
<allow roles="Registered" />
<deny users="*" />

This code should work, but it keeps trying to send me to '/login.aspx?ReturnUrl=%2fHome.aspx.' I no longer have a login.aspx page as I am trying to use YAF's login, but I can't figure out why it sends me to that page by default. I just want it to go to YAF's login page at '/forum/yaf_login.aspx?returnurl=%2fforum%2fForum.aspx.' I have been messing with this for a couple of hours and can't figure it out, so I'm hoping someone here could lend me a hand!
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved