0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

fix(ui): forgotpassword passcode verification page 404 (#2752)

This commit is contained in:
simeng-li 2022-12-29 09:12:33 +08:00 committed by GitHub
parent be2c65dc0c
commit fc456f4851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -147,7 +147,7 @@ export default function interactionRoutes<T extends AnonymousRouter>(
const { signInExperience, interactionDetails } = ctx;
const interactionStorage = getInteractionStorage(interactionDetails.result);
if (interactionStorage.event === InteractionEvent.ForgotPassword) {
if (interactionStorage.event !== InteractionEvent.ForgotPassword) {
verifyIdentifierSettings(identifierPayload, signInExperience);
}

View file

@ -31,7 +31,7 @@ const Passcode = () => {
// SignIn Method not enabled
const methodSettings = signInMethods.find(({ identifier }) => identifier === method);
if (!methodSettings) {
if (!methodSettings && type !== UserFlow.forgotPassword) {
return <ErrorPage />;
}
@ -54,7 +54,7 @@ const Passcode = () => {
type={type}
method={method}
target={target}
hasPasswordButton={type === UserFlow.signIn && methodSettings.password}
hasPasswordButton={type === UserFlow.signIn && methodSettings?.password}
/>
</SecondaryPageWrapper>
);