New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Again phantom error after update to v5.3.2 #109
Comments
Hi @hookenful, Thanks for the snippet, unfortunately you copy pasted to me the code of the The error is on the |
https://pastebin.com/YRFgT3eN Is that |
Yes it should be the one you are skipping. |
Look at our How can I get there meaning that we are skipping it? |
<> |
There isn't anything that you can do on your end to prevent this error, ony sollution is to give me the HTML code of the page You have two option:
|
The link is dead |
Sorry, here it is <> |
Hi @hookenful, thank you for your contribution, |
Thanks for your effort, I need to deploy on swarm and then I'll reply for that, ok? |
@hookenful You are welcome,
This should do it: import React, { useLayoutEffect } from 'react';
import { KcFormLogin } from 'components/Keycloack/KcFormLogin';
import { KcFormPage } from 'components/Keycloack/KcFormPage';
import { KcFormResetPassword } from 'components/Keycloack/KcFormResetPassword';
import { KcContextBase } from 'keycloakify';
import { KcApp as KcAppBase } from 'keycloakify/lib/components/KcApp';
import { KcFormUpdatePassword } from './KcFormUpdatePassword';
import type { KcProps } from 'KcTypes/kcProps';
export const KcApp = React.memo(({ kcContext, ...props }: { kcContext: KcContextBase } & KcProps) => {
useLayoutEffect(() => {
if (kcContext.pageId === 'info.ftl' && kcContext.actionUri !== undefined) {
window.location.href = kcContext.actionUri;
}
}, [kcContext.pageId]);
switch (kcContext.pageId) {
+ case 'info.ftl':
+ return null;
case 'login.ftl':
return <KcFormLogin {...{ kcContext: kcContext as KcContextBase.Login & KcProps, ...props }} />;
case 'login-page-expired.ftl':
return <KcFormPage {...{ kcContext: kcContext as KcContextBase.LoginPageExpired & KcProps, ...props }} />;
case 'login-reset-password.ftl':
return (
<KcFormResetPassword {...{ kcContext: kcContext as KcContextBase.LoginResetPassword & KcProps, ...props }} />
);
case 'login-update-password.ftl':
return (
<KcFormUpdatePassword {...{ kcContext: kcContext as KcContextBase.LoginUpdatePassword & KcProps, ...props }} />
);
default:
return <KcAppBase {...{ kcContext, ...props }} />;
}
});
|
Worked like a charm, very thankful :) Cya, have a nice evening, Joseph. |
Hi there!
Getting again that strange problem while activating update-password link from email:
Source code of error page:
https://pastebin.com/TxQPpR4x
Thank for any help!
The text was updated successfully, but these errors were encountered: