Closed (fixed)
Project:
Customerror
Version:
8.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2021 at 20:06 UTC
Updated:
26 Mar 2022 at 03:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
squiggy commentedHere's a patch that removes the login form.
Adding a setting would be better if this is a feature that anyone else is interested in.
Comment #3
squiggy commentedComment #4
squiggy commentedComment #5
gisleWhat is the use case?
Anyone who know anything about Drupal knows how to display the login form as the anonymous user, so it hard to imagine a use case where exposing the login form is a vulnerability.
Comment #6
squiggy commentedYou're right this is not a Drupal security vulnerability. The use case is specific to a particular website, and they don't want to show anonymous users the login form on 403 or 404 pages.
Comment #7
gisleI am not going to remove functionality from the project based on requirements of a single website.
I am willing to consider a well-written patch that introduces a setting to hide or show this form to maintain existing behaviour.
Comment #8
robloachI agree a toggle setting would be the best option. Hoping we can get that added in the next iteration. In the mean time, here is a smaller diff that achieves the above patch's objective. Hope we can get a toggle option for it sometime soon.
Thanks for the attention here, gisle! Leaving as needs work.
Comment #9
robloachRemoved the LOGIN! text. Not quite a toggle yet.
Comment #10
loze commentedThis patch adds a toggle checkbox on the settings page to show the login form for each error type.
Comment #11
mlncn commentedLooks good!
Comment #13
mlncn commentedComment #14
mlncn commentedSmall support request tacked on here… i suppose people here mostly wanted the login form gone, but is it fully working for anyone?
Once i removed any other login form blocks from the page (was including with https://www.drupal.org/project/http_client_error_status ) the actual logging in worked, but redirecting to the page i was trying to reach did not— i end up at, for example,
/customerror/403?destination=/admin/content, but that destination parameter is not used.Suppose this will have to be a feature request for this module, if it's not easier to do another way.