Hybrid Login block displays unnecessary header for Drupal login block

Created on 3 September 2024, 13 days ago
Updated 11 September 2024, 5 days ago

Problem/Motivation

We've noticed that the Hybrid Login block displays a header at the bottom of the custom block template:

    {% if hide_drupal_login == 0 %}
        <hr>
        <h2>Sign in with existing account</h2>
    {% endif %}

This made sense at first when you have a vertical layout for the Drupal login page, but if a site wanted a horizontal split layout it wouldn't display correctly. This title probably shouldn't be managed in this block, but rather in a login form template outside of the Hybrid Login module.

Steps to reproduce

  • If you move the Drupal login form to a different part of the page, the "Sign in with existing account" title does not follow that form because it is not part of the form, but rather part of the Hybrid Login block (it shouldn't)

Proposed resolution

Simply remove the code snippet above from the template file located in templates/hybrid-login-block.html.twig

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jminarick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024