Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Mod Requests and Support  ›  Accept Email Domains Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 1 Guests

Accept Email Domains  This thread currently has 427 views. Print
1 Pages 1 Recommend Thread
tylermenezes
January 6, 2007, 8:28pm Report to Moderator Report to Moderator

Anybody here speak Python? HHHSSSSSSSSSSSSSS!
Posts: 201
Gender: Male
Posts Per Day: 0.21
Reputation: 90.48%
Reputation Score: +19 / -2
Time Online: 1 days 5 hours 56 minutes
Location: Redmond, Washington
Age: 16
Could someone tell me how to make a mod that only allows emails from certain domains? I'm making a website for a school, and we need to only allow emails from the school's email domain (@lwsd.org) for security purposes.

Thanks!!!


Logged Offline
Site Site Private Message Private message
tylermenezes
January 7, 2007, 11:54pm Report to Moderator Report to Moderator

Anybody here speak Python? HHHSSSSSSSSSSSSSS!
Posts: 201
Gender: Male
Posts Per Day: 0.21
Reputation: 90.48%
Reputation Score: +19 / -2
Time Online: 1 days 5 hours 56 minutes
Location: Redmond, Washington
Age: 16
Someone PLEASE help! I need this by 1:30 Monday (PST)!


Logged Offline
Site Site Private Message Private message Reply: 1 - 4
Martin
January 8, 2007, 12:42am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
Try this.

Open Register.pl and find:

Code
error_reg($registertxt[70]) if($FORM{'email'} ne $FORM{'validemail'});


Add this straight after:

Code
error_reg("Invalid Email, Please use your School Email Address") if($FORM{'email'} !~ /lwsd/sig);



Upload the file in ASCII

This worked when testing on 10.2



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 2 - 4
tylermenezes
January 8, 2007, 12:48am Report to Moderator Report to Moderator

Anybody here speak Python? HHHSSSSSSSSSSSSSS!
Posts: 201
Gender: Male
Posts Per Day: 0.21
Reputation: 90.48%
Reputation Score: +19 / -2
Time Online: 1 days 5 hours 56 minutes
Location: Redmond, Washington
Age: 16
Thanks so much!


Logged Offline
Site Site Private Message Private message Reply: 3 - 4
Martin
January 8, 2007, 12:53am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
Did you test it on your site?

I first tried registering witha normal addy which failed, then with lwsd in the addy and I registered OK



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 4 - 4
1 Pages 1 Recommend Thread
Print

E-Blah Community    Modifications    Mod Requests and Support  ›  Accept Email Domains