-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Modify the panel password verification rule #8291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,12 +70,8 @@ import { logOutApi } from '@/api/modules/auth'; | |
| const globalStore = GlobalStore(); | ||
| const passFormRef = ref<FormInstance>(); | ||
| const passRules = reactive({ | ||
| oldPassword: [Rules.noSpace, Rules.requiredInput], | ||
| newPassword: [ | ||
| Rules.requiredInput, | ||
| Rules.noSpace, | ||
| { min: 6, message: i18n.global.t('commons.rule.commonPassword'), trigger: 'blur' }, | ||
| ], | ||
| oldPassword: [Rules.requiredInput, Rules.noSpace], | ||
| newPassword: [Rules.requiredInput, Rules.noSpace], | ||
| newPasswordComplexity: [Rules.requiredInput, Rules.noSpace, Rules.password], | ||
| retryPassword: [Rules.requiredInput, Rules.noSpace, { validator: checkPassword, trigger: 'blur' }], | ||
| }); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is one issue found in the code: Lines 73 to 76 have been removed from the Optimization suggestion: |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code does not contain any irregularities or potential issues. The only difference appears to be that rules for
oldPassandnewPassComplexitywere removed from the second set of rules. Since these fields do not appear to have additional validation logic, no immediate optimizations are needed.