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:
parent
be2c65dc0c
commit
fc456f4851
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue