diff options
author | friendica <info@friendica.com> | 2012-08-15 23:15:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-15 23:15:29 -0700 |
commit | 5b547ae991624924c0ef11dbe36ae57f5ec2182b (patch) | |
tree | 875bdc2b49a588f9076d83f21362de26540acbf6 /mod/zregister.php | |
parent | f7c6a6ff9071c120f5bd6efe51cdb934e0c30cc7 (diff) | |
download | volse-hubzilla-5b547ae991624924c0ef11dbe36ae57f5ec2182b.tar.gz volse-hubzilla-5b547ae991624924c0ef11dbe36ae57f5ec2182b.tar.bz2 volse-hubzilla-5b547ae991624924c0ef11dbe36ae57f5ec2182b.zip |
registration dangling code fragment that should've been removed
Diffstat (limited to 'mod/zregister.php')
-rw-r--r-- | mod/zregister.php | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/mod/zregister.php b/mod/zregister.php index fbdc4e260..2cde25469 100644 --- a/mod/zregister.php +++ b/mod/zregister.php @@ -7,27 +7,7 @@ function zregister_init(&$a) { $cmd = ((argc() > 1) ? argv(1) : ''); if($cmd === 'email_check.json') { - $result = array('error' => false, 'message' => ''); - $email = $_REQUEST['email']; - if(! strlen($email)) - json_return_and_die($result); - - if((! valid_email($email)) || (! validate_email($email))) - $result['message'] .= t('Not a valid email address') . EOL; - elseif(! allowed_email($email)) - $result['message'] = t('Your email domain is not among those allowed on this site'); - else { - $r = q("select account_email from account where account_email = '%s' limit 1", - dbesc($email) - ); - if(count($r)) { - $result['message'] .= t('Your email address is already registered at this site.'); - } - } - if($result['message']) - $result['error'] = true; - - + $result = check_account_email($_REQUEST['email']); json_return_and_die($result); } |