|
@@ -57,7 +57,7 @@
|
|
import { Vue, Component, Watch, Prop } from 'vue-property-decorator'
|
|
import { Vue, Component, Watch, Prop } from 'vue-property-decorator'
|
|
import { changePassword } from '@/api/base'
|
|
import { changePassword } from '@/api/base'
|
|
import { verification } from '@/utils/index'
|
|
import { verification } from '@/utils/index'
|
|
-import { regPassword } from '@/utils/reg'
|
|
+import { regNewPassword } from '@/utils/reg'
|
|
import InputItem from '@/components/FormItem/Input/index.vue'
|
|
import InputItem from '@/components/FormItem/Input/index.vue'
|
|
|
|
|
|
import { encryption } from '@/utils/encryption'
|
|
import { encryption } from '@/utils/encryption'
|
|
@@ -78,8 +78,8 @@ export default class modifyPsw extends Vue {
|
|
{ condition: !this.originalPassword, errmsg: '请输入原密码' },
|
|
{ condition: !this.originalPassword, errmsg: '请输入原密码' },
|
|
{ condition: !this.newPassword, errmsg: '请输入新密码' },
|
|
{ condition: !this.newPassword, errmsg: '请输入新密码' },
|
|
{
|
|
{
|
|
- condition: !regPassword().test(this.newPassword),
|
|
+ condition: !regNewPassword().test(this.newPassword),
|
|
- errmsg: '密码包含大小写字母和数字,不可有非法字符!'
|
|
+ errmsg: '密码位数至少12位,必须包含大小写字母和数字,不可包含非法字符!'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
condition: this.confirmPassword !== this.newPassword,
|
|
condition: this.confirmPassword !== this.newPassword,
|