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 have a registration key defined as "MANOR" for a particular group. When attempting to register for a new account using a registration key, I type "manor" and am presenting with the following error: "Not a valid group registration key." Registration is only successful if I use all caps.
After looking at the module code, I'm a bit confused.
function og_reg_codes_valid_code($code) {
$code = strtoupper(trim($code));
It looks like the validation function makes the user input uppercase before checking it against the value in the database.
Why would this happen? Is this intended? Am I missing something here?
Thanks!
Comments
Comment #1
marcp CreditAttribution: marcp commentedMoving this to the OG Registration Codes project where the issue belongs. There is no strtoupper() in og_reg_keys.