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

marcp’s picture

Project: Organic Groups Registration Keys » Organic Groups Registration Codes
Version: 6.x-1.4 » 6.x-1.0-beta1
Component: User interface » Code

Moving this to the OG Registration Codes project where the issue belongs. There is no strtoupper() in og_reg_keys.