Browse Source

Remove deprecations

euromark 10 years ago
parent
commit
e2b4d2d997
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Model/Behavior/PasswordableBehavior.php

+ 1 - 1
Model/Behavior/PasswordableBehavior.php

@@ -404,7 +404,7 @@ class PasswordableBehavior extends ModelBehavior {
 			$value = Security::hash($Model->data[$Model->alias][$formField], $type, $salt);
 		}
 
-		$dbValue = $Model->field($field, [$Model->primaryKey => $primaryKey]);
+		$dbValue = $Model->fieldByConditions($field, [$Model->primaryKey => $primaryKey]);
 		if (!$dbValue) {
 			return true;
 		}