Transition from hook_form_alter to something else

Created on 26 September 2022, over 2 years ago
Updated 4 March 2025, about 2 months ago

Problem/Motivation

Currently we are using a hook_form_alter to add additional validation logic. This is quite old fashioned since there are lot more ways to probably do this.

Proposed resolution

We should see if it's possible to transition the logic from the .module into a EventSubscriber or other form of login validation class. Since we have test coverage for both the login page and login block I think this should be very easy to port.

Remaining tasks

  • Check what approaches are available
  • Port the logic in a issue branch
  • Create MR and wait until tests pass

User interface changes

N/A

API changes

N/A

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024