Need the ability to hide the password recovery link

Created on 23 September 2023, 9 months ago
Updated 6 October 2023, 9 months ago

Problem/Motivation

And I use the "noreqnewpass" module ( https://www.drupal.org/project/noreqnewpass β†’ ), which disables the ability to recover the password for users. This option is not needed on my site and leads to error 403. How to remove the link to password recovery in Gin Login? I tried using CSS, but I completely forgot that the component does not load the custom.css theme file.

User interface changes

You need to add the ability to add your own css code, or a setting that will hide the password recovery link.

✨ Feature request
Status

Closed: works as designed

Version

2.0

Component

User interface

Created by

πŸ‡·πŸ‡ΊRussia mr.pomelov

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

Comments & Activities

  • Issue created by @mr.pomelov
  • Status changed to Closed: works as designed 9 months ago
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    You have plenty of options:

    - You can use gin-custom.css, see Gin documentation.

    - You can override the template

    - You can use a preprocess function to remove it

    So closing this as we won't add dedicated support for it.

    Cheers

  • πŸ‡·πŸ‡ΊRussia mr.pomelov

    Thanks for the feedback. The first thing I did was I wanted to redefine the template to those in the module folder, but this element is not rendered separately there. It looks a bit complicated for a beginner. In my case, the changes are reduced to prescribing the "display: none;" property to the element in CSS. I created a css file according to the documentation with the name "gin-custom.css", registered everything necessary there, but I don't see any changes. It's not clear from the documentation - does this file have to connect itself or do I need to add it as a third-party css library in the theme info file? In one of the answers you write that you need to add a file as libraries-extend, could you show an example of how to do this? It would also be an ideal addition to the documentation. A similar problem is described here, but here a person wants to add a file to his topic, it is not clear whether he succeeded or not: https://www.drupal.org/project/gin/issues/3316350 β†’

Production build 0.69.0 2024