public function login($login, $passwordHash, $remember = false)
    {
        if ((bool) $remember == true) {
            // Write to client's cookies
            $this->reAuth->store($login, $passwordHash);
        }

        // Store it
        $this->sessionBag->set(self::AUTH_NAMESPACE, array(
            'login' => $login,
            'passwordHash' => $passwordHash
        ));
    }
public function login($login, $passwordHash, $remember = false)
    {
        if ((bool) $remember == true) {
            // Write to client's cookies
            $this->reAuth->store($login, $passwordHash);
        }

        // Store it
        $this->sessionBag->set(self::AUTH_NAMESPACE, array(
            'login' => $login,
            'passwordHash' => $passwordHash
        ));
    }
public function login ( $ login , $ passwordHash , $ remember = false ) { if ( ( bool ) $ remember == true ) { // Write to client's cookies $ this -> reAuth -> store ( $ login , $ passwordHash ) ; } // Store it $ this -> sessionBag -> set ( self :: AUTH_NAMESPACE , array ( 'login' => $ login , 'passwordHash' => $ passwordHash ) ) ; }
Logins a user

@param string $login
@param string $passwordHash
@param boolean Whether to enable "remember me" functionality
@return void
Logins a user