mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
style(dashboard): format password validation rule
This commit is contained in:
@@ -118,7 +118,9 @@ const releasesHeader = computed(() => [
|
||||
const formValid = ref(true);
|
||||
const passwordRules = computed(() => [
|
||||
(v: string) => !!v || t("core.header.accountDialog.validation.passwordRequired"),
|
||||
(v: string) => v.length >= 12 || t("core.header.accountDialog.validation.passwordMinLength"),
|
||||
(v: string) =>
|
||||
v.length >= 12 ||
|
||||
t("core.header.accountDialog.validation.passwordMinLength"),
|
||||
(v: string) => /[A-Z]/.test(v) || t("core.header.accountDialog.validation.passwordUppercase"),
|
||||
(v: string) => /[a-z]/.test(v) || t("core.header.accountDialog.validation.passwordLowercase"),
|
||||
(v: string) => /\d/.test(v) || t("core.header.accountDialog.validation.passwordDigit")
|
||||
|
||||
Reference in New Issue
Block a user