Skip to content

Commit

Permalink
Amplify Auth username fields now labelled as Email
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswilty committed Mar 6, 2024
1 parent 85ce32d commit 8594f40
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions frontend/src/AuthenticatedApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ import './Theme.css';
import './Authenticator.css';
/* eslint-enable import/order */

const usernameFormField = {
username: {
label: 'Email address',
placeholder: '[email protected]',
isRequired: true,
},
};

Amplify.configure({
Auth: {
Cognito: {
Expand Down Expand Up @@ -58,11 +66,11 @@ const AuthenticatedApp = withAuthenticator(
},
},
formFields: {
signIn: {
...usernameFormField,
},
forgotPassword: {
username: {
placeholder: 'Enter your Email',
isRequired: true,
},
...usernameFormField,
},
},
}
Expand Down

0 comments on commit 8594f40

Please sign in to comment.