Explorar o código

fix password field is password was empty

causefx %!s(int64=7) %!d(string=hai) anos
pai
achega
1186a5ddbb
Modificáronse 1 ficheiros con 1 adicións e 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']);