提交 f4a460ea 编写于 作者: C chenruilong 提交者: Anne_LXM

fix: 没有配置敏感信息解密密钥时登录报错

上级 5f730f3a
## 1.1.23(2024-11-04)
- uni-id-co 修复 没有配置敏感信息解密密钥时导致登录报错的问题
## 1.1.22(2024-09-13)
- 注册登录时去除字符串两端的空白字符
- 删除static目录下重复资源
......
......@@ -21,10 +21,10 @@ function checkSecret (secret) {
}
}
function encryptData (text = '') {
if (!text) return text
const encryptSecret = this.config.sensitiveInfoEncryptSecret
if (!text || !encryptSecret) return text
checkSecret(encryptSecret)
const iv = encryptSecret.slice(-16)
......@@ -40,10 +40,10 @@ function encryptData (text = '') {
}
function decryptData (text = '') {
if (!text) return text
const encryptSecret = this.config.sensitiveInfoEncryptSecret
if (!text || !encryptSecret) return text
checkSecret(encryptSecret)
const iv = encryptSecret.slice(-16)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册