Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By theicecreamman22 on
I am trying to remove "Reset your Password" on the login screen in Drupal 8. Any ideas?
PS: I'm not great at php and I have adaptivetheme as my theme
Thanks,
James
Comments
You can try the solution
You can try the solution given at https://gist.github.com/zviryatko/37c01dcd2e24ae1674f7
Thanks,
Sort of...
Thanks for that link. I have been looking for something like that. But, how do I use it. Where does it go?
You need to create one custom
You need to create one custom module for this. Search for 'how to create custom module in drupal 8'.
Thanks,
Brilliant
It works :)
If you are looking for a module
try https://www.drupal.org/project/noreqnewpass
hook_form_alter did the trick for me
And registered it as service in your_module.services.yml file: