public static function findByUsernameOrEmail($emailOrUsername)
	{
		if (filter_var($emailOrUsername, FILTER_VALIDATE_EMAIL)) {
			return UserIdentity::findByEmail($emailOrUsername);
		}

		return UserIdentity::findByUsername($emailOrUsername);
	}