Browse Source

1、未冻结账号点击解冻弹出提示

2、登录密码过期强制修改增加旧密码校验
hella_online_20240919
bjang03 3 months ago
parent
commit
80d11944a2
  1. 11
      src/views/login/updatePasswordNewTips.vue

11
src/views/login/updatePasswordNewTips.vue

@ -3,6 +3,15 @@
<el-form ref="formSmsLogin" :model="loginData" :rules="rules" label-width="130px" label-position="top" size="large">
<div class="title" style="font-size:25px" margin-left="0px">重置密码</div>
<el-row type="flex" justify="center" align="middle">
<el-col>
<el-form-item label="旧密码" prop="oldPassword" align="center">
<el-input v-model="loginData.oldPassword" placeholder="请输入旧密码" :type="isShowPassword?'text':'password'"/>
<el-icon style="position: absolute; right: 10px;cursor: pointer;" color="#a5a5a5" size="20" @click="isShowPassword = !isShowPassword">
<View v-if="!isShowPassword"/>
<Hide v-if="isShowPassword"/>
</el-icon>
</el-form-item>
</el-col>
<el-col>
<el-form-item label="新密码" prop="password" align="center">
<el-input v-model="loginData.password" placeholder="请输入新密码" :type="isShowPassword?'text':'password'"/>
@ -52,6 +61,7 @@
againPassword: [required]
}
const loginData = reactive({
oldPassword: '',
password: '',
againPassword: '',
mailKey: '',
@ -68,7 +78,6 @@
message.error('两次输入的密码不一致,请重新输入!')
} else {
const data = loginData as unknown as UserApi.UserVO
debugger
await UserApi.updatePassword(data)
//
message.success(t('common.updateSuccess'))

Loading…
Cancel
Save