From edf8c32a0f82c0d9765106b4c880df8f3de425c1 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 26 Nov 2018 20:05:55 +0100 Subject: [PATCH] caas errorCodes in error.html are gone now --- src/error.html | 75 +++++++++++++++++++------------------------------ src/js/setup.js | 10 ------- 2 files changed, 29 insertions(+), 56 deletions(-) diff --git a/src/error.html b/src/error.html index d7183f8b0..806a634a7 100644 --- a/src/error.html +++ b/src/error.html @@ -1,30 +1,30 @@ - - + + - Cloudron Error + Cloudron Error - + - - + + - - + + - - + + - - + + - - - + + + - + - +
-
- -

Cloudron

- -
-

Something has gone wrong

- Back to the dashboard -
- -
-

Cloudron is not setup

- Please use the setup link you received via mail. -
- -
-

Setup requires a setupToken in the query

- Please use the setup link you received via mail. -
- -
-

Setup requires an email in the query

- Please use the setup link you received via mail. -
+
+ +

Cloudron

+
+

Something has gone wrong

+ Back to the dashboard
+
diff --git a/src/js/setup.js b/src/js/setup.js index 489f5d67d..cf7dd1f3e 100644 --- a/src/js/setup.js +++ b/src/js/setup.js @@ -68,16 +68,6 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope } if (status.provider === 'caas') { - if (!search.setupToken) { - window.location.href = '/error.html?errorCode=2'; - return; - } - - if (!search.email) { - window.location.href = '/error.html?errorCode=3'; - return; - } - $scope.setupToken = search.setupToken; }