Example #1
0
</div>
								</a>
								<?php 
            }
        }
        ?>
					</div>
				</fieldset>
				<div class="clear"></div>
				<?php 
    }
}
?>

		<?php 
$emailusers = User::oneByEmail($this->registration['email'])->get('id');
if (($this->task == 'create' || $this->task == 'proxycreate') && $emailusers) {
    ?>
			<div class="error">
				<p>The email address "<?php 
    echo $this->escape($this->registration['email']);
    ?>
" is already registered. If you have lost or forgotten this <?php 
    echo $this->sitename;
    ?>
 login information, we can help you recover it:</p>
				<p class="submit"><a href="<?php 
    echo Route::url('index.php?option=com_users&view=remind');
    ?>
" class="btn btn-danger">Email Existing Account Information</a>
				<p>If you are aware you already have another account registered to this email address, and are requesting another account because you need more resources, <?php 
Example #2
0
 /**
  * Create a new user instance.
  *
  * @param   mixed  $id
  * @return  object
  */
 protected function resolveUser($id)
 {
     if (!is_numeric($id)) {
         if (strstr($id, '@')) {
             $user = User::oneByEmail($id);
         } else {
             $user = User::oneByUsername($id);
         }
     } else {
         $user = User::oneOrNew($id);
     }
     return $user;
 }