* fix bug for check decrypted password.

This commit is contained in:
wangyidong
2021-02-19 10:19:47 +08:00
committed by Yagami
parent dc7cf604e9
commit c7aa400995
+3
View File
@@ -363,6 +363,9 @@ class baseHelper
{
$decryptedPassword = openssl_decrypt($password, 'DES-CBC', $secret, OPENSSL_ZERO_PADDING);
}
/* Check decrypted password. Judge whether there is garbled code. */
if(json_encode($decryptedPassword) === 'null') $decryptedPassword = '';
}
if(empty($decryptedPassword)) $decryptedPassword = $password;