xoops forums

BradM

Just popping in
Posted on: 2003/12/8 18:48
BradM
BradM (Show more)
Just popping in
Posts: 78
Since: 2003/8/14
#1

Request: restrict email during signup

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

Mithrandir

XOOPS is my life!
Posted on: 2003/12/8 18:55
Mithrandir
Mithrandir (Show more)
XOOPS is my life!
Posts: 6320
Since: 2003/6/21
#2

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.
Posted on: 2003/12/8 19:43
ackbarr
ackbarr (Show more)
Posts: 1449
Since: 2002/10/2
#3

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$

Mithrandir

XOOPS is my life!
Posted on: 2003/12/8 22:30
Mithrandir
Mithrandir (Show more)
XOOPS is my life!
Posts: 6320
Since: 2003/6/21
#4

Re: Request: restrict email during signup

uhhh - right

/me hides

BradM

Just popping in
Posted on: 2003/12/9 5:36
BradM
BradM (Show more)
Just popping in
Posts: 78
Since: 2003/8/14
#5

Re: Request: restrict email during signup

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

Herko

XOOPS is my life!
Posted on: 2003/12/9 9:23
Herko
Herko (Show more)
XOOPS is my life!
Posts: 4238
Since: 2002/2/4 1
#6

Re: Request: restrict email during signup

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

Herko

lykoszine

Module Developer
Posted on: 2003/12/9 9:45
lykoszine
lykoszine (Show more)
Module Developer
Posts: 244
Since: 2002/1/2 2
#7

Re: Request: restrict email during signup

But Herko, do you not yet understand???

gruessle

Friend of XOOPS
Posted on: 2003/12/9 10:27
gruessle
gruessle (Show more)
Friend of XOOPS
Posts: 348
Since: 2003/9/20
#8

Re: Request: restrict email during signup

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

Herko

XOOPS is my life!
Posted on: 2003/12/9 10:37
Herko
Herko (Show more)
XOOPS is my life!
Posts: 4238
Since: 2002/2/4 1
#9

Re: Request: restrict email during signup

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...