diff --git a/src/js/setupaccount.js b/src/js/setupaccount.js index 593c981ba..d359f28ef 100644 --- a/src/js/setupaccount.js +++ b/src/js/setupaccount.js @@ -35,6 +35,7 @@ app.controller('SetupAccountController', ['$scope', '$http', function ($scope, $ $scope.view = 'setup'; $scope.status = null; + $scope.profileLocked = !!search.profileLocked; $scope.existingUsername = !!search.username; $scope.username = search.username || ''; $scope.displayName = search.displayName || ''; @@ -47,11 +48,14 @@ app.controller('SetupAccountController', ['$scope', '$http', function ($scope, $ var data = { resetToken: search.resetToken, - username: $scope.username, - displayName: $scope.displayName, password: $scope.password }; + if (!$scope.profileLocked) { + data.username = $scope.username; + data.displayName = $scope.displayName; + } + function error(data, status) { $scope.busy = false; diff --git a/src/setupaccount.html b/src/setupaccount.html index 61337e17e..4699cf95f 100644 --- a/src/setupaccount.html +++ b/src/setupaccount.html @@ -68,23 +68,19 @@