|
|
@ -16,19 +16,13 @@ const form = reactive({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const formRules = { |
|
|
|
const formRules = { |
|
|
|
currentPassword: [ |
|
|
|
currentPassword: [{ required: true, message: t('msg.error.signUpRules.passwdRequired') }], |
|
|
|
// Current password is required |
|
|
|
|
|
|
|
{ required: true, message: t('msg.error.signUpRules.passwdRequired') }, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
password: [ |
|
|
|
password: [ |
|
|
|
// Password is required |
|
|
|
|
|
|
|
{ required: true, message: t('msg.error.signUpRules.passwdRequired') }, |
|
|
|
{ required: true, message: t('msg.error.signUpRules.passwdRequired') }, |
|
|
|
{ min: 8, message: t('msg.error.signUpRules.passwdLength') }, |
|
|
|
{ min: 8, message: t('msg.error.signUpRules.passwdLength') }, |
|
|
|
], |
|
|
|
], |
|
|
|
passwordRepeat: [ |
|
|
|
passwordRepeat: [ |
|
|
|
// PasswordRepeat is required |
|
|
|
|
|
|
|
{ required: true, message: t('msg.error.signUpRules.passwdRequired') }, |
|
|
|
{ required: true, message: t('msg.error.signUpRules.passwdRequired') }, |
|
|
|
// Passwords match |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
validator: (_: unknown, _v: string) => { |
|
|
|
validator: (_: unknown, _v: string) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|