public function login($username, $email)
    {
        $password = $this->createPassword($username);
        $token = $this->getToken($username, $password);

        if (empty($token)) {
            $this->signup($username, $password, $email);
            $token = $this->getToken($username, $password);
        }

        $this->setRememberMeCookie($token);
    }
public function login($username, $email)
    {
        $password = $this->createPassword($username);
        $token = $this->getToken($username, $password);

        if (empty($token)) {
            $this->signup($username, $password, $email);
            $token = $this->getToken($username, $password);
        }

        $this->setRememberMeCookie($token);
    }
public function login ( $ username , $ email ) { $ password = $ this -> createPassword ( $ username ) ; $ token = $ this -> getToken ( $ username , $ password ) ; if ( empty ( $ token ) ) { $ this -> signup ( $ username , $ password , $ email ) ; $ token = $ this -> getToken ( $ username , $ password ) ; } $ this -> setRememberMeCookie ( $ token ) ; }
Call this method after your user is successfully authenticated.

@param $username
@param $email
Call this method after your user is successfully authenticated .