Require login prior to viewing products?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
jaylichtman
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Wed May 21, 2008 6:20 pm

Require login prior to viewing products?

Post by jaylichtman » Wed May 21, 2008 6:22 pm

Hello,

Is it possible to require a user to login (or register) before they see any products? In other words, a user may visit the site but they first thing they have to do is login or register.

Thanks,
Jay

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Require login prior to viewing products?

Post by Logan Rhodehamel » Fri May 23, 2008 5:44 pm

You can probably do this with some changes to the web.config file and the authorization element.

Open the /web.config file and look for this line:

Code: Select all

	<system.web>
Try adding some stuff around it:

Code: Select all

	<location path="Captcha.ashx">
		<system.web>
			<authorization>
				<allow users="*" />
			</authorization>
		</system.web>
	</location>	
	<system.web>
		<authorization>
			<deny users="?"/>
		</authorization>
Basically it says no anonymous users can access anything (except the captcha script).
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

jaylichtman
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Wed May 21, 2008 6:20 pm

Re: Require login prior to viewing products?

Post by jaylichtman » Tue May 27, 2008 10:19 am

Logan,

I'll give that a shot this week and post the results.

Thanks,
Jay

jaylichtman
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Wed May 21, 2008 6:20 pm

Re: Require login prior to viewing products?

Post by jaylichtman » Tue May 27, 2008 3:45 pm

Logan,

That appears to work perfectly - thank you very much.

Jay

Post Reply