Hello all,
I've added this line to the main folder web.config file to requires the user to login before viewing the products:
<authorization>
<deny users="?"/>
</authorization>
This 'causes the theming the be lost, and I think since the user is a guess, it can't access the styles in the App_Themes. If I take that line out, then everything appears to be working. Any idea on how to requires the user to login while maintaining the theme?
Thanks,
Kenny.
Lost theming on required login before viewing products?
- ryanstowasser
- Lieutenant Commander (LCDR)
- Posts: 90
- Joined: Tue Oct 30, 2007 4:28 pm
- Contact:
Re: Lost theming on required login before viewing products?
Add the following line to your Product "Display Page" in the Page_Init :
if(Token.Instance.User.IsAnonymous) Response.Redirect("Login.aspx?ReturnUrl="+ _Product.NavigateUrl)
if(Token.Instance.User.IsAnonymous) Response.Redirect("Login.aspx?ReturnUrl="+ _Product.NavigateUrl)
Ryan Stowasser (ablehelp@vortx.com)
Vortx Inc
Custom Development for AbleCommerce Solutions
Vortx is an AbleCommerce Development Partner
Vortx Inc
Custom Development for AbleCommerce Solutions
Vortx is an AbleCommerce Development Partner