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

Feature request: Config setting to remove "Forgot" button #231

Open
pamtbaau opened this issue Nov 1, 2019 · 1 comment
Open

Feature request: Config setting to remove "Forgot" button #231

pamtbaau opened this issue Nov 1, 2019 · 1 comment

Comments

@pamtbaau
Copy link

pamtbaau commented Nov 1, 2019

Maybe I have been overlooking something, but removing the "Forgot" button isn't as easy as I would expect.

The following seems an easy implementation for a simple config switch:

  1. In template login-form.html.twig replace:
    {% if page.header.form.login.forgot_button ?? true %}
    
    with:
    {% if page.header.form.login.forgot_button ?? true 
           and config.plugins.login.forgot_button ?? true %}
    

Now the user can simply create the following config in /user/config/plugins/login.yaml:

forgot_button: false

Note: Shouldn't page.header.form be page.header.forms?

@beejay41
Copy link

It appears that clearing the "forgot" route in the plugin config hides the link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants