Explorar el Código

fix password field is password was empty

causefx hace 7 años
padre
commit
1186a5ddbb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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']);