Tweak login wording to let users know that email login works

This will reduce support requests
This commit is contained in:
Gabriel Horner
2023-08-14 15:34:46 -04:00
committed by Tienson Qin
parent d419487445
commit cbed7f7a19
2 changed files with 7 additions and 2 deletions

View File

@@ -9,6 +9,12 @@ export function LSAuthenticator({ termsLink, children }: any) {
username: { order: 2 },
password: { order: 3 },
confirm_password: { order: 4 },
},
signIn: {
username: {
placeholder: 'Enter your Username or Email',
label: 'Username or Email'
}
}
}}
loginMechanisms={['username']}

View File

@@ -5,7 +5,6 @@ import { dict } from 'aws-amplify-react/lib-esm/AmplifyI18n'
// fix i18n
dict.zh['Reset Password'] = '重置密码'
dict.zh['Enter your username'] = '请输入用户名'
dict.zh['Enter your email'] = '请输入邮箱'
dict.zh['Enter your password'] = '请输入密码'
dict.zh['Confirm Password'] = '确认密码'
@@ -26,7 +25,7 @@ const fixesMapping = {
'Forgot Password': ['Forgot your password?'],
'Enter your email': ['Enter your Email'],
'Enter your password': ['Enter your Password'],
'Enter your username': ['Enter your Username']
'Enter your username': ['Enter your Username or Email']
}
Object.keys(dict).forEach((k) => {