Browse Source

fix: i18n for Password page

pull/6512/head
Muhammed Mustafa 1 year ago
parent
commit
5b548ee7de
  1. 8
      packages/nc-gui/components/account/ResetPassword.vue

8
packages/nc-gui/components/account/ResetPassword.vue

@ -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) => {

Loading…
Cancel
Save