用户密码支持自定义配置规则

This commit is contained in:
RuoYi
2026-04-17 13:10:37 +08:00
parent 2291f63ee9
commit f118c7d24f
5 changed files with 98 additions and 30 deletions
+2
View File
@@ -1,4 +1,5 @@
import router from '@/router'
import cache from '@/plugins/cache'
import { ElMessageBox, } from 'element-plus'
import { login, logout, getInfo } from '@/api/login'
import { getToken, setToken, removeToken } from '@/utils/auth'
@@ -55,6 +56,7 @@ const useUserStore = defineStore(
this.name = user.userName
this.nickName = user.nickName
this.avatar = avatar
cache.session.set('pwrChrtype', res.pwdChrtype)
/* 初始密码提示 */
if(res.isDefaultModifyPwd) {
ElMessageBox.confirm('您的密码还是初始密码,请修改密码!', '安全提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {