Admin like login/restrictions, but for whole store

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Admin like login/restrictions, but for whole store

Post by igavemybest » Wed Sep 23, 2009 3:20 am

Is there a way to set up an admin style login (minus the captcha) to view the store at all? So, theoretically, if you were not logged in, you would have 0 access to the store. (new users would be added from the admin side or custom script elsewhere). Hints...suggestions?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Admin like login/restrictions, but for whole store

Post by AbleMods » Wed Sep 23, 2009 12:33 pm

Edit the web.config file and immediately after the <system.web> tag put:

Code: Select all

<authorization>
     <deny users="?"/>
</authorization>

This will require website authentication to view ANY page, including default.aspx. Effectively the site no longer allows anonymous access.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Admin like login/restrictions, but for whole store

Post by igavemybest » Wed Sep 23, 2009 1:23 pm

Ahh, simple :)

Post Reply