function logme()
    {
        $password = Common::getRequestVar('password', null, 'string');

        $login = Common::getRequestVar('login', null, 'string');
        if (Piwik::hasTheUserSuperUserAccess($login)) {
            throw new Exception(Piwik::translate('Login_ExceptionInvalidSuperUserAccessAuthenticationMethod', array("logme")));
        }

        $currentUrl = 'index.php';

        if ($this->idSite) {
            $currentUrl .= '?idSite=' . $this->idSite;
        }

        $urlToRedirect = Common::getRequestVar('url', $currentUrl, 'string');
        $urlToRedirect = Common::unsanitizeInputValue($urlToRedirect);

        $this->authenticateAndRedirect($login, $password, $urlToRedirect, $passwordHashed = true);
    }
function logme()
    {
        $password = Common::getRequestVar('password', null, 'string');

        $login = Common::getRequestVar('login', null, 'string');
        if (Piwik::hasTheUserSuperUserAccess($login)) {
            throw new Exception(Piwik::translate('Login_ExceptionInvalidSuperUserAccessAuthenticationMethod', array("logme")));
        }

        $currentUrl = 'index.php';

        if ($this->idSite) {
            $currentUrl .= '?idSite=' . $this->idSite;
        }

        $urlToRedirect = Common::getRequestVar('url', $currentUrl, 'string');
        $urlToRedirect = Common::unsanitizeInputValue($urlToRedirect);

        $this->authenticateAndRedirect($login, $password, $urlToRedirect, $passwordHashed = true);
    }
function logme ( ) { $ password = Common :: getRequestVar ( 'password' , null , 'string' ) ; $ login = Common :: getRequestVar ( 'login' , null , 'string' ) ; if ( Piwik :: hasTheUserSuperUserAccess ( $ login ) ) { throw new Exception ( Piwik :: translate ( 'Login_ExceptionInvalidSuperUserAccessAuthenticationMethod' , array ( "logme" ) ) ) ; } $ currentUrl = 'index.php' ; if ( $ this -> idSite ) { $ currentUrl .= '?idSite=' . $ this -> idSite ; } $ urlToRedirect = Common :: getRequestVar ( 'url' , $ currentUrl , 'string' ) ; $ urlToRedirect = Common :: unsanitizeInputValue ( $ urlToRedirect ) ; $ this -> authenticateAndRedirect ( $ login , $ password , $ urlToRedirect , $ passwordHashed = true ) ; }
Form-less login
@see how to use it on http://piwik.org/faq/how-to/#faq_30
@throws Exception
@return void
Form - less login