Skip to content

Commit 31e94be

Browse files
small fix
1 parent 0adb1b4 commit 31e94be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/packages/lowcoder/src/pages/userAuth/formLoginSteps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default function FormLoginSteps(props: FormLoginProps) {
247247
<Flex justify="end" style={{margin: '10px 0'}}>
248248
<Link to={{
249249
pathname: AUTH_FORGOT_PASSWORD_URL,
250-
state: location.state
250+
state: {...location.state || {}, email: account}
251251
}}
252252
>
253253
{`${trans("userAuth.forgotPassword")}?`}
@@ -272,7 +272,7 @@ export default function FormLoginSteps(props: FormLoginProps) {
272272
<AuthBottomView>
273273
<StyledRouteLink to={{
274274
pathname: AUTH_REGISTER_URL,
275-
state: location.state
275+
state: {...location.state || {}, email: account}
276276
}}>
277277
{trans("userAuth.register")}
278278
</StyledRouteLink>

client/packages/lowcoder/src/pages/userAuth/register.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
StyledRouteLinkLogin,
88
TermsAndPrivacyInfo,
99
} from "pages/userAuth/authComponents";
10-
import { CustomModal, FormInput, messageInstance, PasswordInput } from "lowcoder-design";
10+
import { FormInput, messageInstance, PasswordInput } from "lowcoder-design";
1111
import { AUTH_LOGIN_URL, ORG_AUTH_LOGIN_URL } from "constants/routesURL";
1212
import UserApi from "api/userApi";
1313
import { useRedirectUrl } from "util/hooks";

0 commit comments

Comments
 (0)