Piwik\Plugins\Login\Auth::authenticationSuccess PHP Method

authenticationSuccess() private method

private authenticationSuccess ( array $user )
$user array
    private function authenticationSuccess(array $user)
    {
        $this->setTokenAuth($user['token_auth']);
        $isSuperUser = (int) $user['superuser_access'];
        $code = $isSuperUser ? AuthResult::SUCCESS_SUPERUSER_AUTH_CODE : AuthResult::SUCCESS;
        return new AuthResult($code, $user['login'], $user['token_auth']);
    }