Merge pull request #15195 from strapi/chore/incorrect-label

This commit is contained in:
Josh 2022-12-16 15:23:58 +00:00 committed by GitHub
commit c31175fb37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -268,7 +268,7 @@ const Register = ({ authType, fieldsToDisable, noSignin, onSubmit, schema }) =>
required
label={formatMessage({
id: 'Auth.form.confirmPassword.label',
defaultMessage: 'Confirmation Password',
defaultMessage: 'Confirm Password',
})}
type={confirmPasswordShown ? 'text' : 'password'}
/>

View File

@ -1020,7 +1020,7 @@ describe('ADMIN | PAGES | AUTH | Register', () => {
<div
class="c0 c13"
>
Confirmation Password
Confirm Password
<span
class="c5 c27 c28"
>

View File

@ -154,7 +154,7 @@ const ForgotPassword = ({ onSubmit, schema }) => {
required
label={formatMessage({
id: 'Auth.form.confirmPassword.label',
defaultMessage: 'Confirmation Password',
defaultMessage: 'Confirm Password',
})}
type={confirmPasswordShown ? 'text' : 'password'}
/>

View File

@ -766,7 +766,7 @@ describe('ADMIN | PAGES | AUTH | ResetPassword', () => {
<div
class="c0 c13"
>
Confirmation Password
Confirm Password
<span
class="c5 c22 c23"
>

View File

@ -11,7 +11,7 @@
"Auth.form.button.login.strapi": "Log in via Strapi",
"Auth.form.button.password-recovery": "Password Recovery",
"Auth.form.button.register": "Let's start",
"Auth.form.confirmPassword.label": "Confirmation Password",
"Auth.form.confirmPassword.label": "Confirm Password",
"Auth.form.currentPassword.label": "Current Password",
"Auth.form.email.label": "Email",
"Auth.form.email.placeholder": "e.g. kai@doe.com",

View File

@ -50,7 +50,7 @@ describe('Auth API', () => {
expect(res.body.error.message).toBe('Forbidden');
});
test('Fails on invalid confirmation password', async () => {
test('Fails on invalid confirm password', async () => {
const res = await rq({
method: 'POST',
url: '/change-password',