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 = {
currentPassword: [
// Current password is required
{ required: true, message: t('msg.error.signUpRules.passwdRequired') },
],
currentPassword: [{ required: true, message: t('msg.error.signUpRules.passwdRequired') }],
password: [
// Password is required
{ required: true, message: t('msg.error.signUpRules.passwdRequired') },
{ min: 8, message: t('msg.error.signUpRules.passwdLength') },
],
passwordRepeat: [
// PasswordRepeat is required
{ required: true, message: t('msg.error.signUpRules.passwdRequired') },
// Passwords match
{
validator: (_: unknown, _v: string) => {
return new Promise((resolve, reject) => {

Loading…
Cancel
Save