logout
This commit is contained in:
parent
764349b5bf
commit
7eb580558e
|
@ -27,8 +27,7 @@ const types = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Message({ type, title, items = [] }) {
|
export default function Message({ type = "info", title, items = [] }) {
|
||||||
console.log("------", type, types[type]);
|
|
||||||
const { backgroundColor, titleColor, detailsColor, iconColor, icon } = types[type];
|
const { backgroundColor, titleColor, detailsColor, iconColor, icon } = types[type];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -24,6 +24,10 @@ export async function getServerSideProps(context) {
|
||||||
try {
|
try {
|
||||||
const { status, data } = await kratos.getSelfServiceRecoveryFlow(flow);
|
const { status, data } = await kratos.getSelfServiceRecoveryFlow(flow);
|
||||||
|
|
||||||
|
console.log("================================================================");
|
||||||
|
console.log(flow);
|
||||||
|
console.log("================================================================");
|
||||||
|
|
||||||
if (status === 200) return { props: { flow: data } };
|
if (status === 200) return { props: { flow: data } };
|
||||||
|
|
||||||
throw new Error(`Failed to retrieve flow ${flow} with code ${status}`);
|
throw new Error(`Failed to retrieve flow ${flow} with code ${status}`);
|
||||||
|
|
Reference in New Issue