From 9493172034ffb7229e8dede03ec6cf48328d90cf Mon Sep 17 00:00:00 2001
From: HF
Date: Sat, 9 May 2020 08:01:40 +0200
Subject: [PATCH] fix error handling of passport fix a few lsint errors
---
src/components/Admin.jsx | 19 ++++--
src/components/RedirectionPage.jsx | 23 ++++---
src/routes/api/auth/index.js | 106 +++++++++++++++++------------
src/routes/api/auth/verify.js | 2 +-
4 files changed, 92 insertions(+), 58 deletions(-)
diff --git a/src/components/Admin.jsx b/src/components/Admin.jsx
index b76249b6..a56e6f7b 100644
--- a/src/components/Admin.jsx
+++ b/src/components/Admin.jsx
@@ -39,11 +39,18 @@ const Admin = () => (
);
-const data = {
- title: 'PixelPlanet.fun AdminTools',
- description: 'admin access on pixelplanet',
- body: ,
-};
-const adminHtml = `${ReactDOM.renderToStaticMarkup()}`;
+const title = 'PixelPlanet.fun AdminTools';
+const description = 'admin access on pixelplanet';
+const body = ;
+
+const adminHtml = `${
+ ReactDOM.renderToStaticMarkup(
+
,
+ )
+}`;
export default adminHtml;
diff --git a/src/components/RedirectionPage.jsx b/src/components/RedirectionPage.jsx
index 0b5f7944..405761d1 100644
--- a/src/components/RedirectionPage.jsx
+++ b/src/components/RedirectionPage.jsx
@@ -10,18 +10,23 @@ import Html from './Html';
const RedirectionPage = ({ text, host }) => (
{text}
-
You will be automatically redirected after 5s
+
You will be automatically redirected after 15s
Or Click here to go back to pixelplanet
);
-export function getHtml(description, text, host) {
- const data = {
- title: 'PixelPlanet.fun Accounts',
- description,
- body: ,
- code: `window.setTimeout(function(){window.location.href="${host}";},4000)`,
- };
- const index = `${ReactDOM.renderToStaticMarkup(