Remove cloudron name from the setup wizard

This commit is contained in:
Johannes Zellner
2015-10-20 13:20:37 +02:00
parent 446f571bec
commit 8124f0ac7f
4 changed files with 6 additions and 18 deletions

View File

@@ -368,12 +368,11 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
}).error(defaultErrorHandler(callback));
};
Client.prototype.createAdmin = function (username, password, email, name, setupToken, callback) {
Client.prototype.createAdmin = function (username, password, email, setupToken, callback) {
var payload = {
username: username,
password: password,
email: email,
name: name
email: email
};
var that = this;

View File

@@ -40,7 +40,6 @@ app.service('Wizard', [ function () {
this.username = '';
this.email = '';
this.password = '';
this.name = '';
this.availableAvatars = [{
file: null,
data: null,
@@ -198,7 +197,7 @@ app.controller('StepController', ['$scope', '$route', '$location', 'Wizard', fun
app.controller('FinishController', ['$scope', '$location', '$timeout', 'Wizard', 'Client', function ($scope, $location, $timeout, Wizard, Client) {
$scope.wizard = Wizard;
Client.createAdmin($scope.wizard.username, $scope.wizard.password, $scope.wizard.email, $scope.wizard.name, $scope.setupToken, function (error) {
Client.createAdmin($scope.wizard.username, $scope.wizard.password, $scope.wizard.email, $scope.setupToken, function (error) {
if (error) {
console.error('Internal error', error);
window.location.href = '/error.html';