Skip to content

Commit

Permalink
POD update to clarify intent of validation
Browse files Browse the repository at this point in the history
  • Loading branch information
grantm committed May 19, 2011
1 parent df46340 commit 3a41580
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@
Revision history for {{$dist->name}}

{{$NEXT}}
- POD update to clarify intent of validation
- fix Javascript to work on older versions of IE
- add Javascript option to set intial focus

Expand Down
8 changes: 8 additions & 0 deletions lib/Algorithm/CouponCode.pm
Expand Up @@ -216,6 +216,14 @@ the validator function, in the form of a jQuery plugin. You can include this
in your web application to do client-side validation and highlighting of
errors.
I<Note> the cc_validate function and the Javascript plugin only validate that
the code is 'well-formed' (i.e.: each part has a valid checkdigit). Checking
whether the code is in fact 'valid' is left up to your application and would
typically involve looking for the code in a database. If you use the
Javascript plugin, you might choose to tweak the CSS to keep the red
highlighting of checksum errors but remove the green highlighting which might
imply the code was correct.
=head2 Randomness and Uniqueness
The code returned by C<cc_generate()> is random, but not necessarily unique.
Expand Down

0 comments on commit 3a41580

Please sign in to comment.