Fire the passed event.

@param string $username
@param string $password

@return void
353156
protected function firePassedEvent($username, $password)
    {
        if (isset($this->events)) {
            $this->events->fire(new Passed($this->connection, $username, $password));
        }
    }
1098845
public function setAuth($username = null, $password = null)
    {
        $this->username = $username;
        $this->password = $password;
    }
742296
public function login(?string $username, ?string $password)
    {
        try {
            $this->startBrokerSession();

            if (!$username || !$password) {
                $this->fail('No username and/or password provided.');
            }

            if (!$this->authenticate($username, $password)) {
                $this->fail('User authentication failed.');
            }
        } catch (SSOServerException $e) {
            return $this->returnJson(['error' => $e->getMessage()]);
        }

        $this->setSessionData('sso_user', $username);

        return $this->userInfo();
    }
1146916
public function fire()
    {
        $this->line('Welcome to the user generator.');

        $userdata['first_name']  = $this->ask('What is your First Name?');
        $userdata['last_name']   = $this->ask('What is your Last Name?');
        $userdata['email']       = $this->ask('What is your email?');
        $userdata['password']    = $this->secret('Enter a password?');
        $userdata['permissions'] = array('superuser' => 1);

        $user = Sentry::register($userdata, true);
        $this->info('<info>User ' . $userdata['first_name'] . ' added.</info>');
    }
464767
protected function authenticate($username,$password) {

            if (is_callable($this->onAuthenticate)) {
                call_user_func($this->onAuthenticate,$username,$password);
            }

        }
665951
public function setup(string $host, string $username, string $password, string $security, bool $use_smtp = true): void
    {
        $this->use_smtp = $use_smtp;
        $this->email_host = $host;
        $this->email_username = $username;
        $this->email_password = $password;
        $this->email_security = $security;
    }
833939
public function setCredentials(string $username, string $password)
    {
        $userpwd = $username . ':' . $password;
        curl_setopt($this->curl, CURLOPT_USERPWD, $userpwd);
    }
77044
public function useBasicAuth($username=false, $password=false) {
        self::$useBasicAuth=($username!==false && $password!==false);
        self::$username=$username;
        self::$password=$password;
    }
169018
public function setUsername($username, $password = null) {
		$this->username = (string) $username;
		
		if ($password !== null) {
			$this->setPassword($password);
		}
		
		return $this;
	}
347542
public function fire()
    {
        $name = $this->ask('Name : ');
        $email = $this->ask('Email : ');
        $password = $this->secret('Password : ');

        $user = User::firstOrcreate(compact('name', 'email', 'password'));

        $this->line('Select role:');

        foreach (Role::all() as $role) {
            $this->line($role->id.'. '.$role->name);
        }

        $role = $this->ask('Role number : ');

        $user->addRole($role);

        $this->info("User [{$user->name}] created successfully.");
    }
1033478
private function fireEvent()
    {
        $status = isset($this->response['error_code']) ? VkRequest::STATUS_FAIL : VkRequest::STATUS_SUCCESS;
        $event = sprintf(VkRequest::EVENT_FORMAT, $status, $this->request->method, $this->request->tag);
        event($event, [$this->request, $this->response]);
    }
774999
protected function fireBoundEvent($username, $password)
    {
        if (isset($this->events)) {
            $this->events->fire(new Bound($this->connection, $username, $password));
        }
    }
1163084
protected function fillUsername(string $username): void
    {
        $this->context->findElement($this->fields['username'], $this->defaultTimeout)->setValue($username);
    }
234296
private function fireEvent($event, ...$params)
    {
        if (!$this->eventManager) {
            return;
        }

        $this->eventManager->handle($event, ...$params);
    }
933293
protected function fireFailedEvent($username, $password)
    {
        if (isset($this->events)) {
            $this->events->fire(new Failed($this->connection, $username, $password));
        }
    }
934189
public function login($username, $password)
    {
        $args = array($username, $password);
        $token = $this->_soapAdapter->call('login', $args);
        $this->setToken($token);
        return $token;
    }
570803
function setAuthorization($username,$password){
		settype($username,"string");
		settype($password,"string");

		$this->_Username = $username;
		$this->_Password = $password;
		$this->_AuthType = "basic";
	}