Changeset 3031 for trunk/application

Show
Ignore:
Timestamp:
07/10/2008 11:06:23 AM (5 months ago)
Author:
Geert
Message:

A few minor tweaks to Basic and Alpha Captcha style in order to preserve enough readability and make both styles differ a bit more.

Also changed internal terminology to the "official" convention: http://en.wikipedia.org/wiki/Challenge-response_authentication

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/application/controllers/examples.php

    r3017 r3031  
    176176        { 
    177177                // Form submitted 
    178                 if (isset($_POST['captcha_answer'])) 
     178                if (isset($_POST['captcha_response'])) 
    179179                { 
    180180                        // Note: Captcha::valid() can be used in conjunction with the Validation library too 
    181                         echo (Captcha::valid($_POST['captcha_answer'])) ? 'Good answer!' : 'Wrong answer!'; 
     181                        echo (Captcha::valid($_POST['captcha_response'])) ? 'Good answer!' : 'Wrong answer!'; 
    182182                } 
    183183 
     
    187187                echo Captcha::factory()->render(); // <-- shows the Captcha challenge (image/riddle/etc) 
    188188                echo '</p>'; 
    189                 echo form::input('captcha_answer'); 
     189                echo form::input('captcha_response'); 
    190190                echo form::submit(array('value' => 'Check')); 
    191191                echo form::close();