private function getUsernameFromEmail($enteredUsername)
	{
		// get username from email
		$result = \Hubzero\User\User::oneByEmail($enteredUsername);

		// no results or too many
		if (!$result || !$result->get('id'))
		{
			return null;
		}

		return $result->get('username');
	}
private function getUsernameFromEmail($enteredUsername)
	{
		// get username from email
		$result = \Hubzero\User\User::oneByEmail($enteredUsername);

		// no results or too many
		if (!$result || !$result->get('id'))
		{
			return null;
		}

		return $result->get('username');
	}
private function getUsernameFromEmail ( $ enteredUsername ) { // get username from email $ result = \ Hubzero \ User \ User :: oneByEmail ( $ enteredUsername ) ; // no results or too many if ( ! $ result || ! $ result -> get ( 'id' ) ) { return null ; } return $ result -> get ( 'username' ) ; }
Get username from email address

@param   string  $enteredUsername  Email address
@return  string  User's username
Get username from email address