I failed to remove the inline labels of 2fa_instructions and 2fa_code, don't know if it is related to the admin plugin or not.

Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
I failed to remove the inline labels of 2fa_instructions and 2fa_code, don't know if it is related to the admin plugin or not.

@giminni, I cannot reproduce this using a fresh Grav + Admin 1.7.8 download.
What changes have you made to 'achieve' this behaviour?
@pamtbaau, there are two plugins with login forms. The admin login plugin is working properly, the 2FA form from the user login plugin is not working properly, i guess it is a wrong include in the twig file "login-twofa.html.twig"
...
{% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
...
{% set form = forms('login-twofa') %}
{% set client_side_validation = form.client_side_validation is not null ? form.client_side_validation : config.plugins.form.client_side_validation|default(true) %}
{% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}<form method="post" action="{{ (base_url_relative ~ uri.path)|e }}" class="{{ form_outer_classes }} twofa-form">
{% for field in form.fields %}
{% if field.type %}
<div>
{% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
</div>
{% endif %}
{% endfor %}TWIG{{ nonce_field('login-form', 'login-form-nonce')|raw }} <div class="{{ form_button_outer_classes ?: 'form-actions secondary-accent' }}"> <div class="form-actions primary-accent"> <button type="submit" class="{{ form_button_classes ?: 'button primary' }}" name="task" value="login.twofa"><i class="fa fa-sign-in"></i> {{ 'PLUGIN_LOGIN.BTN_LOGIN'|t }}</button> <button type="submit" class="{{ form_button_classes ?: 'button secondary' }}" name="task" value="login.logout">{{ 'PLUGIN_LOGIN.BTN_CANCEL'|t }}</button> </div> </div></form>
BTW I am using gantry5 v5.4.37 in combination with grav v1.7.8
@giminni, I cannot reproduce it either when using the Login plugin to login at a front-end page.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 13 | 1138 | 4 months ago | ||
| 0 | 62 | 5 months ago | ||
| 9 | 136 | 6 months ago | ||
| 7 | 110 | 7 months ago | ||
| 10 | 130 | 7 months ago |