Latest News: (loading..)
Sign in to follow this  
Followers 0
Dandon

Only customers from one domain allowed

3 posts in this topic

Hi all,

 

I need to setup a fairly standard store but with following "special" features: No shopping cart or checkout, it's basically a catalog for locating product codes for use by one of my dealers. But I need to allow people from taht company to register and login, only if their email is from a single certain domain. I.e. I want to have only customers with email like user1@good_domain.com or user2@good_domain.dom be able to register, and anyuser@anyotherdomain.com to get rejected. The purpòse is to install a "only registered user can see prices" only contrib. Therefore only people from taht company can see prices. obviously it should be done with some kind of email sent to the customer to validate.

 

Do you know of some contrib(s) that can allow me to automatically do that? I only need the domain fuilter part, the other features I have already located. I could set it up to manually validate requets, but I'm talking of perhaps a couple hundred people.

TIA

Share this post


Link to post
Share on other sites

A small piece of jQuery would accomplish this to show the visitor that only 1 email domain can be used to create an account. javascript is client side so is not difficult to get around, so also set $error=true in create_account using the $_post'd email address.

 

Make sense?

Share this post


Link to post
Share on other sites

Thank you for your answer. Though i'm not a programmer I can understand what you mean. Yes, it makes sense :) Will try to do that.

Edited by Dandon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0