<html xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:i="http://typo3.org/ns/TYPO3/CMS/Install/ViewHelpers" data-namespace-typo3-fluid="true">

<div class="typo3-install-container">
    <div class="typo3-install-content">
        <div class="typo3-install-content-header">
            <img src="{f:uri.resource(path: 'EXT:core/Resources/Public/Images/typo3_light_dark.svg')}" width="130" class="logo" alt="TYPO3 logo" />
            <h1>Login to TYPO3 Install Tool</h1>
            <f:if condition="{siteName}"><p>Site: {siteName}</p></f:if>
        </div>
        <div class="typo3-install-content-body">

            <form method="post" id="t3-install-form-login" data-login-token="{loginToken}" spellcheck="false">
                <div class="form-group">
                    <label class="form-label" for="t3-install-form-password">Password</label>
                    <input class="form-control t3-install-form-input-text" id="t3-install-form-password" type="password" name="install[password]" autofocus="autofocus" />
                </div>
                <div class="form-group">
                    <button type="button" class="btn btn-primary t3js-login-login">
                        Login
                    </button>
                    <f:if condition="!{installToolEnableFilePermanent}">
                        <button type="button" class="btn btn-default t3js-login-lockInstallTool">
                            <core:icon identifier="actions-lock" size="small" /> Lock Install Tool again
                        </button>
                    </f:if>
                </div>
            </form>

            <div class="t3js-login-output"></div>

            <f:if condition="{installToolEnableFilePermanent}">
                <div class="callout callout-danger">
                    <div class="callout-content">
                        <div class="callout-title">Install Tool is permanently enabled</div>
                        <div class="callout-body">
                            The Install Tool is permanently enabled because our <code>ENABLE_INSTALL_TOOL</code> file contains
                            the text <em>KEEP_FILE</em>. <strong>Never use this on production systems!</strong>
                        </div>
                    </div>
                </div>
            </f:if>

            <div class="callout callout-info">
                <div class="callout-content">
                    <div class="callout-title">Information</div>
                    <div class="callout-body">
                        By default the Install Tool password is the one specified during the installation.
                    </div>
                </div>
            </div>
            <div class="callout callout-warning">
                <div class="callout-content">
                    <div class="callout-title">Important</div>
                    <div class="callout-body">
                        If you don't know the current password, you can set a new one by setting the value of
                        <code>$GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']</code> in <code>{configFile}</code> to
                        the hash value of the password you desire, which will be shown if you enter the desired password
                        in this form and submit it.
                        <br /><br />
                        You can also use the <code>bin/typo3 install:password:set</code> command to set this password via
                        the command line interface (CLI).
                        <br /><br />
                        This password gives an attacker full control over your instance if cracked. It should be strong
                        (include lower and upper case characters, special characters and numbers) and at least eight characters long.
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

</html>
