Menu

Can't register users from .name domain

Help
2009-12-21
2012-09-14
  • Phil Beevor

    Phil Beevor - 2009-12-21

    Hi,

    No user with a .NAME domain in their email address seems to be able to
    register as a new user (eg anne@smith.name). Is there some email validation
    php code that can be modified ? Users with .com, .info all regsiter OK but not
    .NAME.

    Can anyone help?

    Thanks, Phil

     
  • Ciprian Murariu

    Ciprian Murariu - 2009-12-21

    If you look into register.php file, you'll find a block (around line 100) like
    this:

    else if (!eregi("^((?)@(?)\.(fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)$",
    $EMAIL))

    {

    $Error = L_ERR_USR_8;

    }

    The first line is the condition that check the domain extension.

    You might want to change that first line to this new one:

    else if (!eregi("^((?)@(?)\.(avel|bi|bs|fo|g|ia|l|m|me|mes|o|op|pa|ro|seum|
    t|to|u|v|z)?)$", $EMAIL))

    This will accept all the generic top-level domains listed here:

    PS: you should do the same in the file edituser.php (around line 84), for
    profile updates.

    Let us know how it worked!

    Ciprian M.

    : http://en.wikipedia.org/wiki/Template:Generic_top-
    level_domains

     
  • Ciprian Murariu

    Ciprian Murariu - 2009-12-21

    Follow-up: You also want to modify the same condition in these files:

    handleinputH.php

    input.php

    passreset.php

    lib/commands/topic.php

    lib/commands/away.php

    Sorry for the inconvenience.

    Ciprian M.

     
  • Ciprian Murariu

    Ciprian Murariu - 2009-12-22

    You said it works now, but, by mistake, I erased your post.

    I answered: Great, another nice fix thanks to you :)

    All the best. Ciprian M.

     

Log in to post a comment.