We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Specific E-Mail address | Forum

Topic location: Forum home » Support » General Questions
ca47
ca47 Feb 23 '13
Hello,

is there any possibility to only allow users the access to the site, if they have a specific E-Mail address. My site is for the studens in my school, so I just want people, who are really in our school. Every student have his own E-Mail address.


Thanks for helping.


- ca47

Tester
Tester Feb 24 '13
If you are using cPanel, perhaps you can try Account Level Filtering.



The Forum post is edited by Tester Feb 24 '13
Alia Team
Alia Feb 25 '13
ca47, this is custom code modification.

I guess that all students have email addresses in  studentname@universityname.com format? (like jane@auca.com, bill@auca.com, bob@auca.com).Where the part after @ is always one and the same for all addresses?

If this is the case you can just add a new check/validator to the "Email" field, so that only emails that end with @auca.com, for example, will be able to register. All other emails will result in "Incorrect email format" error.

Search for "email pattern", "email validation  php" or "regular expressions for email validation" keywords in google to find the solution.




ca47
ca47 Feb 25 '13
okay thank you. will try it :)
Purusothaman Ramanujam
As Aliia mentioned, I also would suggest to use email patters if the email domain does not change.

If it changes, you have get more detailed in to the core.
Tester
Tester Feb 26 '13
The filter that I mentioned is applied only to your email account and has nothing to do with your website. If you want to modify the registration form of your website not to accept each email account, you will have to contact a local developer to assist you further with that. I found it to be a development issue.

I rushed here to post this here, but
Aliia has already made you wise to it.

My apology  for the wrong suggestion.




The Forum post is edited by Tester Feb 26 '13