diff --git a/src/views/settings.html b/src/views/settings.html
index 03ce45368..934cbe6fc 100644
--- a/src/views/settings.html
+++ b/src/views/settings.html
@@ -108,18 +108,23 @@
-
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -329,7 +334,7 @@
Username
- {{ registryConfig.username || 'Not set' }}
+ {{ registryConfig.username || registryConfig.email || 'Not set' }}
diff --git a/src/views/settings.js b/src/views/settings.js
index 04eb89ef1..6c2c351fd 100644
--- a/src/views/settings.js
+++ b/src/views/settings.js
@@ -313,7 +313,8 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
if (error) return console.error(error);
$scope.registryConfig.serverAddress = result.serverAddress;
- $scope.registryConfig.username = result.username;
+ $scope.registryConfig.username = result.username || '';
+ $scope.registryConfig.email = result.email || '';
$scope.registryConfig.password = result.password;
});
}
@@ -369,6 +370,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
serverAddress: '',
username: '',
password: '',
+ email: '',
reset: function () {
$scope.cloudronNameChange.busy = false;
@@ -388,15 +390,16 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
var data = {
serverAddress: $scope.registryConfig.serverAddress,
- username: $scope.registryConfig.username,
- password: $scope.registryConfig.password
+ username: $scope.registryConfig.username || '',
+ password: $scope.registryConfig.password,
+ email: $scope.registryConfig.email || '',
};
Client.setRegistryConfig(data, function (error) {
$scope.registryConfig.busy = false;
if (error) {
- $scope.registryConfig.error = error;
+ $scope.registryConfig.error = error.message;
return;
}