mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
WIP feature/breadcrumb/fix_localize
This commit is contained in:
@@ -148,7 +148,7 @@ function Invite({ requestInviteAccept, requestInviteMetaByToken }) {
|
||||
</h3>
|
||||
<p>
|
||||
<T id={'enter_your_personal_information'} />
|
||||
<b>{inviteValue.organization_name}</b> Organization.
|
||||
<b>{inviteValue.organization_name}</b> <T id={'organization'}/>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ function Login({
|
||||
const loginValidationSchema = Yup.object().shape({
|
||||
crediential: Yup.string()
|
||||
.required(formatMessage({ id: 'required' }))
|
||||
.email(formatMessage({ id: 'invalid_email_or_phone_numner' })),
|
||||
.email(formatMessage({ id: 'invalid_email_or_phone_number' })),
|
||||
password: Yup.string()
|
||||
.required(formatMessage({ id: 'required' }))
|
||||
.min(4),
|
||||
@@ -63,7 +63,7 @@ function Login({
|
||||
crediential: values.crediential,
|
||||
password: values.password,
|
||||
}).then(() => {
|
||||
history.go('/dashboard/homepage');
|
||||
history.go('/homepage');
|
||||
setSubmitting(false);
|
||||
}).catch((errors) => {
|
||||
const toastBuilders = [];
|
||||
|
||||
@@ -52,8 +52,7 @@ function SendResetPassword({ requestSendResetPassword }) {
|
||||
requestSendResetPassword(values.crediential)
|
||||
.then((response) => {
|
||||
AppToaster.show({
|
||||
message: `Check your email for a link to reset your password.
|
||||
If it doesn’t appear within a few minutes, check your spam folder.`,
|
||||
message: formatMessage({id:'check_your_email_for_a_link_to_reset'}),
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
history.push('/auth/login');
|
||||
@@ -62,7 +61,7 @@ function SendResetPassword({ requestSendResetPassword }) {
|
||||
.catch((errors) => {
|
||||
if (errors.find((e) => e.type === 'EMAIL.NOT.REGISTERED')) {
|
||||
AppToaster.show({
|
||||
message: "We couldn't find your account with that email",
|
||||
message: formatMessage({id:'we_couldn_t_find_your_account_with_that_email'}),
|
||||
intent: Intent.DANGER,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user