From ef25f661075b25bb95a308c9640eb4e6f5d3e5d1 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 29 Dec 2015 11:17:08 +0100 Subject: [PATCH] Ask for the user's email if not provided --- webadmin/src/js/setup.js | 4 ++++ webadmin/src/views/setup/step2.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/webadmin/src/js/setup.js b/webadmin/src/js/setup.js index 652c6ecd6..c85865e62 100644 --- a/webadmin/src/js/setup.js +++ b/webadmin/src/js/setup.js @@ -222,6 +222,7 @@ app.controller('StepController', ['$scope', '$route', '$location', 'Wizard', fun app.controller('FinishController', ['$scope', '$location', 'Wizard', 'Client', function ($scope, $location, Wizard, Client) { $scope.wizard = Wizard; + $scope.setupToken = null; Client.createAdmin($scope.wizard.username, $scope.wizard.password, $scope.wizard.email, $scope.setupToken, function (error) { if (error) { @@ -281,6 +282,9 @@ app.controller('SetupController', ['$scope', '$location', 'Client', 'Wizard', fu $scope.setupToken = search.setupToken; Wizard.email = search.email; + + // angular ng-attr is only false when 'undefined' + Wizard.requireEmail = search.email || undefined; } $location.path('/step1'); diff --git a/webadmin/src/views/setup/step2.html b/webadmin/src/views/setup/step2.html index 9a4f8bf80..3493a1339 100644 --- a/webadmin/src/views/setup/step2.html +++ b/webadmin/src/views/setup/step2.html @@ -10,6 +10,10 @@
+
+ + +