Author Topic: Valid e-mail addresses are being blocked  (Read 2509 times)


  • Beginner
  • *
  • Posts: 37
Valid e-mail addresses are being blocked
« on: November 10, 2008, 21:44:47 pm »
I've read a few posts about this but decent answers have been given.  If a person has an e-mail address with a '-' in it, they are prevented from registering with the site.

However, if I create the account from the admin area there are no problems at all.  They can login and make purchases without any interruption.

An example is:

Because of the - it would not be accepted during front-end registration but I could create the account from admin area.  Why would they set it up like this in the first place?  Joomla does not seem to mind regardless of what others claim.

How can I remove this restriction so anyone with an e-mail address can register?

An actual response would be fantastic.


  • Beginner
  • *
  • Posts: 24
Re: Valid e-mail addresses are being blocked
« Reply #1 on: November 27, 2008, 09:29:44 am »
I sent mine to silent registration then changed the SQL statement in includes/joomla.php to check the "username" against the email address like so:

This is around line 1083:

Code: [Select]
// query used for login via login module
$query = "SELECT id, name, username, password, usertype, block, gid"
. "\n FROM #__users"
. "\n WHERE email = ". $this->_db->Quote( $username ) //updated so it check email not username

Where it says "WHERE email" this used to be "WHERE username"

All your doing is leaving everything in the system as it but changing the query that check the user account.

(This is JM 1.0.15 / VM 1.0.15)
JM 1.0.15 / VM 1.0.15