diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-16 20:38:27 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-16 20:38:27 -0700 |
commit | 36e1afa6ae35890a26910951dec6dda98dcdee8f (patch) | |
tree | 392f4f5536c7558c7754cdaaf384d1fb2a12e175 /mod/register.php | |
parent | 6d646e9df5ccd5c0b5a70f15e242b0c50a0b877b (diff) | |
download | volse-hubzilla-36e1afa6ae35890a26910951dec6dda98dcdee8f.tar.gz volse-hubzilla-36e1afa6ae35890a26910951dec6dda98dcdee8f.tar.bz2 volse-hubzilla-36e1afa6ae35890a26910951dec6dda98dcdee8f.zip |
allow login by username and multiple unique email addresses on system - this will provide support for group/celebrity pages (coming soon).
Diffstat (limited to 'mod/register.php')
-rw-r--r-- | mod/register.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/mod/register.php b/mod/register.php index a2cae9961..890bc69b7 100644 --- a/mod/register.php +++ b/mod/register.php @@ -59,21 +59,12 @@ function register_post(&$a) { if(! preg_match("/^[a-zA-Z]* [a-zA-Z]*$/",$username)) $err .= t(' That doesn\'t appear to be your full name.'); - - $r = q("SELECT `uid` FROM `user` - WHERE `email` = '%s' LIMIT 1", - dbesc($email) - ); - if(!eregi('[A-Za-z0-9._%-]+@[A-Za-z0-9._%-]+\.[A-Za-z]{2,6}',$email)) $err .= t(' Not valid email.'); if(! allowed_email($email)) $err .= t(' Your email domain is not among those allowed on this site.'); - if($r !== false && count($r)) - $err .= t(' Your email address is already registered on this system.') ; - $nickname = strtolower($nickname); if(! preg_match("/^[a-z][a-z0-9\-\_]*$/",$nickname)) $err .= t(' Nickname <strong>must</strong> start with a letter and contain only letters, numbers, dashes, or underscore.') ; |