Mark Scherer 11 年之前
父节点
当前提交
5fe3bc5fc9
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      src/Model/Behavior/PasswordableBehavior.php

+ 0 - 6
src/Model/Behavior/PasswordableBehavior.php

@@ -286,12 +286,6 @@ class PasswordableBehavior extends Behavior {
 				}
 				return true;
 			}
-			// Make sure we trigger validation if allowEmpty is set but we have the password field set
-			if ($new) {
-				if ($this->_config['confirm'] && !$entity->get($formFieldRepeat)) {
-					$entity->errors($formFieldRepeat, __d('tools', 'valErrPwdNotMatch'));
-				}
-			}
 		}
 
 		// Update whitelist