open-orchestra/open-orchestra-user-bundle

View on GitHub
UserBundle/Resources/views/Security/loginForm.html.twig

Summary

Maintainability
Test Coverage
{% trans_default_domain 'FOSUserBundle' %}

<div class="fos_user">
    <form action="{{ path("fos_user_security_check") }}" method="post">
        <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
        <fieldset>
            <section>
                <label for="username">{{ 'security.login.username'|trans }}</label>
                <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
            </section>

            <section>
                <label for="password">{{ 'security.login.password'|trans }}</label>
                <input type="password" id="password" name="_password" required="required" />
            </section>
        </fieldset>
        <footer>
            <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
        </footer>
    </form>
</div>