agilebuilder-ui 1.0.63 → 1.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -89,6 +89,20 @@ function isPasswordExpired(username, password) {
89
89
  )
90
90
  }
91
91
 
92
+ function isPasswordExpiredWithValidateCode(username, password, validateCode, imageCodeKey) {
93
+ const usernamePasswordToken = {
94
+ username,
95
+ password,
96
+ validateCode,
97
+ imageCodeKey
98
+ }
99
+ return request.post(
100
+ window.$vueApp.config.globalProperties.baseAPI + '/sso/is-password-expired-with-validate-code',
101
+ usernamePasswordToken
102
+ )
103
+ }
104
+
105
+
92
106
  /** 更新密码 */
93
107
  function updatePassword(data) {
94
108
  return request.put(
@@ -213,5 +227,6 @@ export default {
213
227
  isLoginTimeOut,
214
228
  getUserPermissionMenusBySystemCode,
215
229
  loginWithValidateCode,
216
- getDevPlatformPermissions
230
+ getDevPlatformPermissions,
231
+ isPasswordExpiredWithValidateCode
217
232
  }
@@ -323,6 +323,21 @@ const user = {
323
323
  })
324
324
  },
325
325
 
326
+ // 判断当前用户密码是否过期
327
+ isPasswordExpiredWithValidateCode({ commit }, userInfo) {
328
+ const username = userInfo.username.trim()
329
+ return new Promise((resolve, reject) => {
330
+ ssoService
331
+ .isPasswordExpiredWithValidateCode(username, userInfo.password, userInfo.validCode, userInfo.imageCodeKey )
332
+ .then((message) => {
333
+ resolve(message)
334
+ })
335
+ .catch((error) => {
336
+ reject(error)
337
+ })
338
+ })
339
+ },
340
+
326
341
  updatePassword({ commit }, map) {
327
342
  return new Promise((resolve, reject) => {
328
343
  ssoService