Amplify-js: Change login and password reset form labels

Created on 28 Mar 2019  路  3Comments  路  Source: aws-amplify/amplify-js

I've created a signup setup using cognito which requires just email to signup, which is great, and amplify is an awesome too to get up to speed quickly, but the labels for login and password reset are called 'username' rather than email.

Can there be additional parameters passed to the authenticator component that allows the "username" label to be overwritten across login and password reset as well as signup.

I'm building a react web application.

Auth feature-request pending-close-response-required

Most helpful comment

@dave-graham hi we are currently working on to enable the user to select signing up with only email/phone_number when using Authenticator.

Another workaround for now is to use I18n to replace the Username with Email: https://aws-amplify.github.io/docs/js/i18n
For example:

import { I18n } from 'aws-amplify';

I18n.setLanguage('en');
const dict = {
     'en': {
         'Username': 'Email'
      }
}
I18n.putVocabularies(dict);

This is ideal but can be used as a temporary solution.

All 3 comments

Related to #104

@dave-graham hi we are currently working on to enable the user to select signing up with only email/phone_number when using Authenticator.

Another workaround for now is to use I18n to replace the Username with Email: https://aws-amplify.github.io/docs/js/i18n
For example:

import { I18n } from 'aws-amplify';

I18n.setLanguage('en');
const dict = {
     'en': {
         'Username': 'Email'
      }
}
I18n.putVocabularies(dict);

This is ideal but can be used as a temporary solution.

Closing this issue for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

karlmosenbacher picture karlmosenbacher  路  3Comments

oste picture oste  路  3Comments

shinnapatthesix picture shinnapatthesix  路  3Comments

josoroma picture josoroma  路  3Comments

rygo6 picture rygo6  路  3Comments