framework/RedKiteCms/Rendering/Controller/Security/AuthenticationController.php
public function login(array $options)
    {
        $response = null;
        $template = 'RedKiteCms/Resources/views/Security/Login/login-form.html.twig';
        if ($options["is_ajax"]) {
            $response = new Response();
            $response->setStatusCode('403');

            return $response;
        }

        $params['target'] = '/backend/' . $options["red_kite_cms_config"]->homepagePermalink();
        $params['error'] = $options["error"];
        $params['last_username'] = $options["last_username"];
        $params['template_assets_manager'] = $options["template_assets"];
        $params['template_assets_manager']->add($options["assets"]);

        return $options["twig"]->render($template, $params, $response);
    }
public function login(array $options)
    {
        $response = null;
        $template = 'RedKiteCms/Resources/views/Security/Login/login-form.html.twig';
        if ($options["is_ajax"]) {
            $response = new Response();
            $response->setStatusCode('403');

            return $response;
        }

        $params['target'] = '/backend/' . $options["red_kite_cms_config"]->homepagePermalink();
        $params['error'] = $options["error"];
        $params['last_username'] = $options["last_username"];
        $params['template_assets_manager'] = $options["template_assets"];
        $params['template_assets_manager']->add($options["assets"]);

        return $options["twig"]->render($template, $params, $response);
    }
Implements the action to sign in to the CMS backend
@param array $options

@return \Symfony\Component\HttpFoundation\Response