diff --git a/components/pages/settings/profile/PasswordEditForm.js b/components/pages/settings/profile/PasswordEditForm.js index 4ea934b0..5b29cfc8 100644 --- a/components/pages/settings/profile/PasswordEditForm.js +++ b/components/pages/settings/profile/PasswordEditForm.js @@ -37,7 +37,7 @@ export default function PasswordEditForm({ onSave, onClose }) { name="newPassword" rules={{ required: 'Required', - minLength: { value: 8, message: formatMessage(messages.minPasswordLength) }, + minLength: { value: 8, message: formatMessage(messages.minPasswordLength, { n: 8 }) }, }} > @@ -48,7 +48,7 @@ export default function PasswordEditForm({ onSave, onClose }) { name="confirmPassword" rules={{ required: formatMessage(labels.required), - minLength: { value: 8, message: formatMessage(messages.minPasswordLength) }, + minLength: { value: 8, message: formatMessage(messages.minPasswordLength, { n: 8 }) }, validate: samePassword, }} > diff --git a/components/pages/settings/users/UserEditForm.js b/components/pages/settings/users/UserEditForm.js index 49df4b24..373d1dbe 100644 --- a/components/pages/settings/users/UserEditForm.js +++ b/components/pages/settings/users/UserEditForm.js @@ -48,7 +48,7 @@ export default function UserEditForm({ userId, data, onSave }) { diff --git a/scripts/check-db.js b/scripts/check-db.js index 1cbf25ff..3fd3a908 100644 --- a/scripts/check-db.js +++ b/scripts/check-db.js @@ -53,7 +53,7 @@ async function checkDatabaseVersion(databaseType) { const query = await prisma.$queryRaw`select version() as version`; const version = semver.valid(semver.coerce(query[0].version)); - const minVersion = databaseType === 'postgresql' ? '9.4.0' : '5.6.0'; + const minVersion = databaseType === 'postgresql' ? '9.4.0' : '5.7.0'; if (semver.lt(version, minVersion)) { throw new Error(