矿池租赁的登录字段修改
This commit is contained in:
@@ -677,14 +677,17 @@ export default {
|
||||
const userEmail = localStorage.getItem('userEmail') || '';
|
||||
const language = this.$i18n.locale || 'zh';
|
||||
const username = localStorage.getItem('username') || '';
|
||||
|
||||
if (!token || !userEmail) {
|
||||
this.$message.error("登录信息异常,请重新登录");
|
||||
return;
|
||||
}
|
||||
// 定义加密密钥(生产环境应该从环境变量或配置文件中获取)
|
||||
const secretKey = 'mining-pool-secret-key-2024';
|
||||
|
||||
// 准备要加密的敏感数据
|
||||
const sensitiveData = {
|
||||
token: token,
|
||||
userEmail: userEmail,
|
||||
leasEmail: userEmail,
|
||||
timestamp: Date.now()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user