From d583ee91ff627890ce0a2a1055dcdc394d2391e2 Mon Sep 17 00:00:00 2001
From: xuefei <564615061@qq.cm>
Date: 星期四, 04 五月 2023 09:55:18 +0800
Subject: [PATCH] 登录密码验证base64加密
---
src/views/login.vue | 2 +-
src/views/sys/user-manage/importTemplate.js | 22 +++++++++++-----------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/views/login.vue b/src/views/login.vue
index 42d2136..bd884ae 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -301,7 +301,7 @@
this.loading = true;
login({
username: this.form.username,
- password: this.form.password,
+ password: btoa(this.form.password),
code: this.form.imgCode,
captchaId: this.captchaId,
saveLogin: this.saveLogin,
diff --git a/src/views/sys/user-manage/importTemplate.js b/src/views/sys/user-manage/importTemplate.js
index 03e48a6..644ff1a 100644
--- a/src/views/sys/user-manage/importTemplate.js
+++ b/src/views/sys/user-manage/importTemplate.js
@@ -76,19 +76,19 @@
defaultRole: "瑙掕壊 0(涓嶅垎閰嶉粯璁よ鑹�) 1(鍒嗛厤榛樿娉ㄥ唽鐢ㄦ埛瑙掕壊)"
},
{
- username: "xboot",
- nickname: "exrick",
- password: "123456",
- avatar: "https://s1.ax1x.com/2018/05/19/CcdVQP.png",
- departmentId: "40652338142121984",
- email: "1012139570@qq.com",
- sex: "鐢�",
- address: "鍖椾含甯�,甯傝緰鍖�,涓滃煄鍖�",
- mobile: "18782059033",
- birth: "1997-12-02",
+ username: "",
+ nickname: "",
+ password: "",
+ avatar: "",
+ departmentId: "",
+ email: "",
+ sex: "",
+ address: "",
+ mobile: "",
+ birth: "",
type: 0,
status: 0,
delFlag: 0,
defaultRole: 1
}
-]
\ No newline at end of file
+]
--
Gitblit v1.9.1