From 15e9f25ff70780da2219fba47e4563f43b8e303e Mon Sep 17 00:00:00 2001
From: yyhouc <792163605@qq.com>
Date: Mon, 10 Jul 2023 11:02:26 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E5=AF=86?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/response/administrator.js | 26 ++
.../navBars/breadcrumb/updatePassword.vue | 238 ++++++++++++++++++
src/layout/navBars/breadcrumb/user.vue | 15 +-
3 files changed, 275 insertions(+), 4 deletions(-)
create mode 100644 src/layout/navBars/breadcrumb/updatePassword.vue
diff --git a/src/api/response/administrator.js b/src/api/response/administrator.js
index 3cdfee0..aac24ad 100644
--- a/src/api/response/administrator.js
+++ b/src/api/response/administrator.js
@@ -91,3 +91,29 @@ export const updatePassword = (email,newPassword,tenantId,code) => {
}
});
}
+//根据用户名与租户Id验证密码是否正确
+export const checkPassword = (account,password,tenantId) => {
+ return request({
+ url: '/api/' + moduleName + '/ui/administrator/checkPassword',
+ method: 'get',
+ params: {
+ account,
+ tenantId,
+ password
+ }
+ });
+}
+//根据用户名、租户ID、旧密码修改密码
+export const updatePasswordByOldPassword = (account,oldPassword,newPassword,tenantId) => {
+ return request({
+ url: '/api/' + moduleName + '/ui/administrator/updatePasswordByOldPassword',
+ method: 'put',
+ params: {
+ account,
+ tenantId,
+ oldPassword,
+ newPassword,
+
+ }
+ });
+}
\ No newline at end of file
diff --git a/src/layout/navBars/breadcrumb/updatePassword.vue b/src/layout/navBars/breadcrumb/updatePassword.vue
new file mode 100644
index 0000000..0d78d87
--- /dev/null
+++ b/src/layout/navBars/breadcrumb/updatePassword.vue
@@ -0,0 +1,238 @@
+
+
+