Browse Source

密码策略需求变更,增加日试错次数,达到阈值冻结账号

hella_online_20240913
bjang03 3 months ago
parent
commit
9766500a85
  1. 2
      src/views/login/components/LoginForm.vue
  2. 16
      src/views/system/passwordRule/index.vue

2
src/views/login/components/LoginForm.vue

@ -281,7 +281,7 @@
return
case 1:
await ElMessageBox.alert(
'<strong>密码过期账号已冻结,请联系管理员解冻</strong>',
'<strong>密码过期,请联系管理员修改</strong>',
'重要提示',
{
dangerouslyUseHTMLString: true,

16
src/views/system/passwordRule/index.vue

@ -1,7 +1,7 @@
<template>
<!-- 搜索 -->
<div v-loading="loading" class="box">
<el-form ref="formSmsLogin" :model="data" :rules="rules" label-width="90px" size="large">
<el-form ref="formSmsLogin" :model="data" :rules="rules" label-width="110px" size="large">
<div
class="title"
style="font-size: 20px; text-align: center; margin-bottom: 20px; font-weight: bold"
@ -32,7 +32,7 @@
:min="0"
:precision="0"
style="margin-right: 10px"
/>
/>
</el-form-item>
</el-col>
<el-col>
@ -45,6 +45,16 @@
/>
</el-form-item>
</el-col>
<el-col>
<el-form-item label="试错次数" prop="tryCount">
<el-input-number
v-model="passwordConfig.dayTryCount"
:min="0"
:precision="0"
style="margin-right: 10px"
/>
</el-form-item>
</el-col>
<el-col>
<el-form-item label="更新周期" prop="updatePeriod">
<el-input-number
@ -100,6 +110,7 @@ const reset = () => {
tryCount: 3,
lockMinutes: 1,
updatePeriod: 1,
dayTryCount: 3,
}
}
const passwordConfig = ref({
@ -109,6 +120,7 @@ const passwordConfig = ref({
tryCount: 3,
lockMinutes: 1,
updatePeriod: 1,
dayTryCount: 3,
})
/** 查询配置 */
const getConfig = async () => {

Loading…
Cancel
Save