It would be nice if codes were verified, so that if incorrect codes are entered, then a message appears. Similar to how CAPTCHA works if you supply an incorrect verification answer.

At the moment (on my install, at least) if I enter in a random bit of text, it will go through.

Since no promotion is happening to begin with, I can only assume that the registration would still go through, but no promotion would occur.

Comments

steingard’s picture

Title: Incorrect codes rejected » Reject incorrect codes
zostay’s picture

Component: Miscellaneous » Code
Category: feature » bug
Priority: Normal » Critical

I can confirm that this is the case and this is a bug. It must have been introduced in one of the recent updates. The validation code in the promotion_user() handler is supposed to blow up when this happens. (At least, if I'm remembering correctly.)

zostay’s picture

Assigned: Unassigned » zostay
Status: Active » Fixed

This is caused by the fix to 1.4.

The problem is that the fix to

http://drupal.org/node/150412

resulted in the code given in the Promotional Code box of the registration form to be ignored completely.

I have patched the code in CVS and am current tagging and prepping the 1.5 release to address this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)