浏览代码

Added explaination

Michael Francis 14 年之前
父节点
当前提交
67845c588b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      models/confirmKey.php

+ 1 - 0
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;
 		});
 	}