Piwik\Plugins\Login\SessionInitializer::doAuthenticateSession PHP Method

doAuthenticateSession() protected method

Derived classes can override this method to customize authentication logic or impose extra requirements on the user trying to login.
protected doAuthenticateSession ( Piwik\Auth $auth ) : Piwik\AuthResult
$auth Piwik\Auth The Auth implementation to use when authenticating.
return Piwik\AuthResult
    protected function doAuthenticateSession(AuthInterface $auth)
    {
        Piwik::postEvent('Login.authenticate', array($auth->getLogin()));
        return $auth->authenticate();
    }