脱敏环境密码加密显示

lijinlong
吕天方 4 months ago
parent 7d7798188c
commit a0531deade

@ -1,6 +1,6 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "1.0.202409091333", "version": "1.0.202409141058",
"description": "金鸡湖现代服务业品牌管理系统", "description": "金鸡湖现代服务业品牌管理系统",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",

@ -2,8 +2,7 @@ import JSEncrypt from 'jsencrypt/bin/jsencrypt.min'
// 密钥对生成 http://web.chacuo.net/netrsakeypair // 密钥对生成 http://web.chacuo.net/netrsakeypair
const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdH\n' + const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOEI/QLz9WM0NvGeS44KpR5dbVrvJTTfLu5x3u10CwENqmHEafYPMz4SfBn99//vkLKxO0cRKM3MS+lb/1oSVqsCAwEAAQ=='
'nzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ=='
const privateKey = 'MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY\n' + const privateKey = 'MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY\n' +
'7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKN\n' + '7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKN\n' +

@ -192,7 +192,7 @@ export default {
Cookies.remove("rememberMe"); Cookies.remove("rememberMe");
} }
this.$store this.$store
.dispatch("Login", {...this.loginForm,userType:this.userType}) .dispatch("Login", {...this.loginForm,userType:this.userType, password: encrypt(this.loginForm.password)})
.then(() => { .then(() => {
this.$router.push({ path: this.redirect || "/" }).catch(() => {}); this.$router.push({ path: this.redirect || "/" }).catch(() => {});
}) })

Loading…
Cancel
Save