Active
Project:
Organic Groups Registration Codes
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2011 at 04:32 UTC
Updated:
18 Jul 2011 at 05:03 UTC
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 commentedMoving this to the OG Registration Codes project where the issue belongs. There is no strtoupper() in og_reg_keys.