Browse Source

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

2、登录密码过期强制修改增加旧密码校验
hella_online_20240919
bjang03 2 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"> <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> <div class="title" style="font-size:25px" margin-left="0px">重置密码</div>
<el-row type="flex" justify="center" align="middle"> <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-col>
<el-form-item label="新密码" prop="password" align="center"> <el-form-item label="新密码" prop="password" align="center">
<el-input v-model="loginData.password" placeholder="请输入新密码" :type="isShowPassword?'text':'password'"/> <el-input v-model="loginData.password" placeholder="请输入新密码" :type="isShowPassword?'text':'password'"/>
@ -52,6 +61,7 @@
againPassword: [required] againPassword: [required]
} }
const loginData = reactive({ const loginData = reactive({
oldPassword: '',
password: '', password: '',
againPassword: '', againPassword: '',
mailKey: '', mailKey: '',
@ -68,7 +78,6 @@
message.error('两次输入的密码不一致,请重新输入!') message.error('两次输入的密码不一致,请重新输入!')
} else { } else {
const data = loginData as unknown as UserApi.UserVO const data = loginData as unknown as UserApi.UserVO
debugger
await UserApi.updatePassword(data) await UserApi.updatePassword(data)
// //
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))

Loading…
Cancel
Save