Page 1 of 1
Excluding page from Login validation
Posted: Mon Aug 27, 2012 10:47 pm
by RickSilver
Our site is set to redirect users to the login page if not logged in. There is a page at the site root level called Verification.aspx that needs to run and it either gives an error or does a redirect to the Login page. However it's not getting executed due to the restriction. Is there a way to exclude this page so its code can run?
Thanks
Rick
Re: Excluding page from Login validation
Posted: Tue Aug 28, 2012 6:40 am
by jmestep
It sounds like you have something custom coded because Verification.aspx doesn't come with Able. So you would need to find the code that is calling that page and disable it.
Re: Excluding page from Login validation
Posted: Tue Aug 28, 2012 9:50 am
by david-ebt
You might check your web.config. You can set the Able site to deny all non-authenticated users with this entry in web.config:
Code: Select all
<system.web>
<authorization>
<deny users="?" />
</authorization>
If you have something like that, then you also need entries the this one to allow access to pages without being authenticated, like the register page or contact us page:
Code: Select all
<location path="contactus.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>