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.
I know this module isn't under active development according to the project page, but I will just throw this out there.
I want to have users be able to access content by entering their library card number. I don't need authentication against a database, just a regular expression pattern match. This is something I use for user registration via the private number module.
Would this be possible? If there would be interest, I would be willing to look at the code and work on a solution (fair warning: I haven't done any D7 module development, just a little in d6)
mrweaver
Comments
Comment #1
GrimreaperHello,
The feature is interesting me, only to train me to dev.
But it is a big work to do I think, seeing how the module is made.
Because there is protection to three levels.
global password
global password per content type
password on node
To be the most flexible, the validation with regex needs also to be on the three levels too but we need to provide a way to choose if it is a regex or a classic password which is active on each level.
Big work, interesting but big. I will try to do it.
Maybe decomposing in three parts, with intermediate validation by the community.
Which level do you prefer I start with ? I think I will start with the global password.
Comment #2
DamienMcKennaMaybe just provide hooks to allow another module to extend the validation logic? Or maybe a checkbox to indicate whether a regex is used?
Comment #3
GrimreaperChange the password validator service into a chained service so people can add their own validator before.
Comment #4
GrimreaperComment #6
Grimreaper