Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EZP-22045: As a developer, I want user login to be fully handled by Symfony stack #38

Merged
merged 1 commit into from Jan 6, 2014

Conversation

lolautruche
Copy link
Contributor

DO NOT MERGE

https://jira.ez.no/browse/EZP-22045

Depends on ezsystems/ezpublish-kernel#656 and ezsystems/ezpublish-community#87

TASKS

  • Update links for login/logout
  • Update siteaccess configuration for default layout
  • Override base login.html.twig to match demo layout

@dpobel
Copy link
Contributor

dpobel commented Dec 27, 2013

I guess login.html.twig comes from legacy ;-)

Let's try something a bit more semantic, modern and responsive without changing everything:

{% extends layout %}

{% block content %}
    {% block login_content %}
    <div class="user-login row-fluid">
        <form action="{{ path( 'login_check' ) }}" method="post" name="loginform" class="span7">
            <div class="attribute-header">
                <h1 class="long">{{ "Login"|trans }}</h1>
            </div>

            {% if error %}
            <div class="alert alert-error">
                <h2 class="alert-heading">{{ "Could not login"|trans }}</h2>
                <p>{{ "A valid username and password is required to login."|trans }}</p>
            </div>
            {% endif %}

            {% block login_fields %}
                <div class="block">
                    <label for="id1">{{ "Username:"|trans }}</label>
                    <input class="box" type="text" name="_username" id="id1" value="{{ last_username }}" required="required" autofocus="autofocus" />
                </div>

                <div class="block">
                    <label for="id2">{{ "Password:"|trans }}</label>
                    <input class="box" type="password" name="_password" id="id2" value="" required="required" />
                </div>

                <div class="buttonblock">
                    <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
                    <input class="defaultbutton" type="submit" name="LoginButton" value="{{ "Login"|trans }}" />
                </div>

                <p><a href="{{ path( 'ez_legacy', {'module_uri': 'user/forgotpassword'} ) }}">{{ "Forgot your password?"|trans }}</a></p>

            {% endblock %}
        </form>
    </div>
    {% endblock %}
{% endblock %}

@dpobel
Copy link
Contributor

dpobel commented Dec 27, 2013

besides this, +1

…by Symfony stack

EZP-22045: Customized login template

Fixed innerColumnSize in layout

Added « fre » siteaccess to ezdemo_frontend_group
lolautruche added a commit that referenced this pull request Jan 6, 2014
…mfony

Fix EZP-22045: As a developer, I want user login to be fully handled by Symfony stack
@lolautruche lolautruche merged commit 58f09e8 into master Jan 6, 2014
@lolautruche lolautruche deleted the implement_EZP-22045_userLoginSymfony branch January 6, 2014 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants