From 67845c588baa92bcc6d7003508e2509190d58770 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sun, 10 Jul 2011 22:08:18 -0400 Subject: Added explaination --- models/confirmKey.php | 1 + 1 file changed, 1 insertion(+) diff --git a/models/confirmKey.php b/models/confirmKey.php index 9348021..6047d25 100644 --- a/models/confirmKey.php +++ b/models/confirmKey.php @@ -21,6 +21,7 @@ class confirmKey extends \lithium\data\Model { //Checks if the key is valid (in the database); Validator::add('isValidKey', function($key) { + //If one key is found that matches the input key, then it's legit return confirmKey::count(array('conditions' => compact('key'))) == 1; }); } -- cgit v1.2.3