drew123
  •  drew123
  • 50.8% (Neutral)
  • YAF Forumling Topic Starter
2013-10-01T18:26:20Z
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">
<system.web>
<authorization>
<allow roles="Registered" />
<deny users="*" />
</authorization>
</system.web>
</location>

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!
Sponsor

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