4
0
Эх сурвалжийг харах

fix password field is password was empty

causefx 7 жил өмнө
parent
commit
1186a5ddbb

+ 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']);