public function getUserDetails($username)
	{
		// load username from email
		if (strpos($username, '@'))
		{
			$username = $this->getUsernameFromEmail($username);
		}

		// load profile object, make sure its valid
		$profile = \Hubzero\User\User::oneByUsername($username);

		if (!$profile->get('id'))
		{
			return false;
		}

		// return details as associative array
		return ['user_id' => $profile->get('id'), 'scope' => null];
	}
public function getUserDetails($username)
	{
		// load username from email
		if (strpos($username, '@'))
		{
			$username = $this->getUsernameFromEmail($username);
		}

		// load profile object, make sure its valid
		$profile = \Hubzero\User\User::oneByUsername($username);

		if (!$profile->get('id'))
		{
			return false;
		}

		// return details as associative array
		return ['user_id' => $profile->get('id'), 'scope' => null];
	}
public function getUserDetails ( $ username ) { // load username from email if ( strpos ( $ username , '@' ) ) { $ username = $ this -> getUsernameFromEmail ( $ username ) ; } // load profile object, make sure its valid $ profile = \ Hubzero \ User \ User :: oneByUsername ( $ username ) ; if ( ! $ profile -> get ( 'id' ) ) { return false ; } // return details as associative array return [ 'user_id' => $ profile -> get ( 'id' ) , 'scope' => null ] ; }
Get user information

@param   string  $username  User's username
@return  array   User info
Get user information