ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

User Registration Duplicate Emails

November 14, 2008 1:55pm

Subscribe [3]
  • #1 / Nov 14, 2008 1:55pm

    bkuberek

    124 posts

    ExpressionEngine 1.6.2
    Build:  20080206

    User Module 1.2.8

    “Allow Multiple Accounts Using the Same Email Address? ” = No

    ———

    Users are able to register with the same email address as long as they have different capitalization.

    for example,

    user grayle registers with email

    .(JavaScript must be enabled to view this email address)

    Then many days later he forgot he had already registered and registers again with the email

    .(JavaScript must be enabled to view this email address)

    I’d like to force lowercase emails.

    Is this a User Module bug? How can I resolve this issue without having to dive into the core files?


    Thanks

  • #2 / Nov 14, 2008 2:00pm

    Ingmar

    29245 posts

    Please see this thread for reference. Technically, those are different mail addresses.

  • #3 / Nov 14, 2008 2:11pm

    bkuberek

    124 posts

    thanks

  • #4 / Nov 14, 2008 2:19pm

    Greg Aker

    6022 posts

    Are you all set bkuberek?

    -greg

  • #5 / Nov 14, 2008 2:33pm

    bkuberek

    124 posts

    I have spoken with our team and we agreed that we should implement a lowercase enforcement. Its probably about 99% guaranteed that no client is enforcing this and we believe that will take very long until it actually starts to create problems. We will deal with the consequences later.

    I want to extend the validation class. Is there a hook? I don’t think there is a hook for the validate class. So what would you recommend I attache my extension to?

    Thanks

  • #6 / Nov 14, 2008 2:40pm

    bkuberek

    124 posts

    Actually I have a feature request.

    can we add a configuration for dealing with email case sensitiveness?
    So the validate class can check for this config value and convert to lowercase when set to no.

    I saw other threads looking for the same solution, so I figure it will be convenient for many developers to have this option.


    We can add this line to the config file:

    $conf['case_sensitive_email'] = "n";

    And we add the following lines to core.validate.php before it checks for duplicate emails

    /** -------------------------------------
    /**  case sensitive email?
    /** -------------------------------------*/
    
    if ($PREFS->ini('case_sensitive_email') == 'n')
    {
        $this->email = strtolower($this->email);
    }
  • #7 / Nov 14, 2008 3:15pm

    Greg Aker

    6022 posts

    bkuberek,

    Would you like me to shift this over to the Feature Request Forums, or would you like to make the request there?

    -greg

  • #8 / Nov 14, 2008 3:47pm

    bkuberek

    124 posts

    I can make the request there. Thanks

  • #9 / Nov 14, 2008 5:43pm

    Sue Crocker

    26054 posts

    In that case, bkuberek, I’m going to close this thread. Don’t hesitate to post again if needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases