Browse Source

fix password field is password was empty

causefx 7 years ago
parent
commit
1186a5ddbb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/functions/organizr-functions.php

+ 1 - 1
api/functions/organizr-functions.php

@@ -1169,7 +1169,7 @@ function updateConfigMultipleForm($array)
 		}
 		// Hash
 		if ($v['type'] == 'password') {
-			if (isEncrypted($v['value'])) {
+			if (isEncrypted($v['value']) || $v['value'] == '') {
 				$v['value'] = $v['value'];
 			} else {
 				$v['value'] = encrypt($v['value']);