1
BradM
Request: restrict email during signup
  • 2003/12/8 18:48

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Hi,

I'm looking for any ideas or solutions to restrict email addresses used during user registration (for example, don't allow any email addresses from hotmail.com).

I was thinking perhaps I could use some sort of javascript check when the initial form is being filled out, or perhaps something more thorough such as the check done for account names?

Any suggestions are appreciated.


Brad

2
Mithrandir
Re: Request: restrict email during signup

include/functions.php line 281:
checkEmail($email, $antispam=false) {

Perhaps possible to modify it to return false on *@hotmail.*

dunno how the actual syntax should be, though.

3
ackbarr
Re: Request: restrict email during signup

wouldn't it be easier to add hotmail.com to the list of email addresses not allowed in "System" -> "Preferences" -> "User Info Settings"
This should do the trick:
Quote:

xoops.org$|hotmail.com$


4
Mithrandir
Re: Request: restrict email during signup

uhhh - right

/me hides

5
BradM
Re: Request: restrict email during signup
  • 2003/12/9 5:36

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Yikes! I totally missed this setting. I remembered the one for usernames, but somehow completely forgot about the other. Thanks for pointing it out. :)


Brad

6
Herko
Re: Request: restrict email during signup
  • 2003/12/9 9:23

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


I still don't know why you would restrict xoops.org e-mails tho.. gives me a hard time registering on sites

Herko

7
lykoszine
Re: Request: restrict email during signup
  • 2003/12/9 9:45

  • lykoszine

  • Module Developer

  • Posts: 244

  • Since: 2002/1/2 2


But Herko, do you not yet understand???


8
gruessle
Re: Request: restrict email during signup
  • 2003/12/9 10:27

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


What is that $ sign for?
xoops.org$|hotmail.com$

9
Herko
Re: Request: restrict email during signup
  • 2003/12/9 10:37

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


http://old.scriptmeridian.org/projects/regex/

The $ is part of the regex (regular expression) syntax. In the link above you can find more information on this

Herko

p.s. Lykos: that goes for all the other core team members as well We've noted your opinion on this...

Login

Who's Online

181 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 181


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits