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
Simplify login form view customization #1686
Conversation
@adamwojs is this new buttons are just mockups? I'm asking because when I'm clicking on them nothing happens (no errors in console etc). |
This PR is only about introducing new extension points to login form view. Login will not gonna work without |
OK thank you :) |
Let's not waste time on this one and merge it as it is. |
It's ready to be merge |
We need to document this example |
@ezsystems/documentation-team |
In order to simplify login form template (
src/bundle/Resources/views/themes/admin/account/login/index.html.twig
) customization:login-form-before
andlogin-form-after
components groupsExample use case
Assuming that as a Developer I would like to would like to add "Login via XYZ" button to login form.
/templates/login_via_oauth2.html.twig
2. Add component definition to
/config/services.yaml:
3. Done.
Checklist:
$ composer fix-cs
)