Remove caas case in setup screen

This commit is contained in:
Johannes Zellner
2019-08-06 10:03:12 +02:00
parent debeb8dfd8
commit c42aa7c806
3 changed files with 4 additions and 21 deletions

View File

@@ -19,13 +19,12 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
$scope.error = null;
$scope.provider = '';
$scope.apiServerOrigin = '';
$scope.setupToken = '';
$scope.activateCloudron = function () {
$scope.busy = true;
$scope.error = null;
Client.createAdmin($scope.account.username, $scope.account.password, $scope.account.email, $scope.account.displayName, $scope.setupToken, function (error) {
Client.createAdmin($scope.account.username, $scope.account.password, $scope.account.email, $scope.account.displayName, function (error) {
if (error && error.statusCode === 400) {
$scope.busy = false;
$scope.error = { username: error.message };
@@ -51,7 +50,7 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
}
// if we are here from the ip first go to the real domain if already setup
if (status.provider !== 'caas' && status.adminFqdn && status.adminFqdn !== window.location.hostname) {
if (status.adminFqdn && status.adminFqdn !== window.location.hostname) {
window.location.href = 'https://' + status.adminFqdn + '/setup.html';
return;
}
@@ -67,10 +66,6 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
return;
}
if (status.provider === 'caas') {
$scope.setupToken = search.setupToken;
}
$scope.account.email = search.email || $scope.account.email;
$scope.account.displayName = search.displayName || $scope.account.displayName;
$scope.account.requireEmail = !search.email;