From a66fd7d0856fa9006d18ed1ea2bd818a5bbc4764 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Fri, 30 May 2014 07:56:44 -0400
Subject: [PATCH] Improved API behaviour: The $params array must contain only the new values and not all values of a record on update. Setting all values does not hurt though, so the change is downwards compatible with older versions.

---
 interface/lib/classes/validate_password.inc.php |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/interface/lib/classes/validate_password.inc.php b/interface/lib/classes/validate_password.inc.php
index 9619637..543a90e 100644
--- a/interface/lib/classes/validate_password.inc.php
+++ b/interface/lib/classes/validate_password.inc.php
@@ -96,6 +96,8 @@
 	function password_check($field_name, $field_value, $validator) {
 		global $app;
 		
+		if($field_value == '') return false;
+		
 		$app->uses('ini_parser,getconf');
 		$server_config_array = $app->getconf->get_global_config();
 		

--
Gitblit v1.9.1