|
|
@@ -70,6 +70,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
class="form-item"
|
|
|
+ :class="{'is-required': !isEdit}"
|
|
|
label="SET PASSWORD:"
|
|
|
prop="password">
|
|
|
<el-input
|
|
|
@@ -78,8 +79,9 @@
|
|
|
type="password"
|
|
|
maxlength="32"/>
|
|
|
<template slot="label">
|
|
|
- SET PASSWORD:
|
|
|
+ <span>SET PASSWORD:</span>
|
|
|
<el-tooltip
|
|
|
+ v-if="showPasswordTip"
|
|
|
effect="dark"
|
|
|
:content="passwordTips"
|
|
|
placement="top"
|
|
|
@@ -243,7 +245,7 @@ export default {
|
|
|
password: [{
|
|
|
required: false,
|
|
|
//message: "Passwrod is required",
|
|
|
- trigger: "change",
|
|
|
+ trigger: "blur",
|
|
|
validator: (rule, value, callback) => {
|
|
|
if (value) {
|
|
|
if (settings.enablePassword12) {
|
|
|
@@ -303,6 +305,7 @@ export default {
|
|
|
groupOptions: [],
|
|
|
callingOptions: [],
|
|
|
providerOptions: [],
|
|
|
+ showPasswordTip: settings.enablePassword12,
|
|
|
passwordTips: "Passwords must be at least 12 characters long and include a combination of uppercase and lowercase letters, numbers, and special characters (e.g., !, @, #, $)"
|
|
|
};
|
|
|
},
|