diff --git a/src/views/network.html b/src/views/network.html
index f568fe46c..a5291a249 100644
--- a/src/views/network.html
+++ b/src/views/network.html
@@ -11,6 +11,7 @@
@@ -83,6 +84,7 @@
diff --git a/src/views/network.js b/src/views/network.js
index 1a212fa97..0c5fb3813 100644
--- a/src/views/network.js
+++ b/src/views/network.js
@@ -62,7 +62,7 @@ angular.module('Application').controller('NetworkController', ['$scope', '$locat
$scope.ipv6Configure = {
busy: false,
error: {},
- displayError: null,
+ displayError: '',
serverIPv6: '',
@@ -134,6 +134,9 @@ angular.module('Application').controller('NetworkController', ['$scope', '$locat
$scope.ipv6ConfigureForm.$setUntouched();
return;
} else if (error) {
+ $scope.ipv6Configure.error.generic = error.message;
+ $scope.ipv6ConfigureForm.$setPristine();
+ $scope.ipv6ConfigureForm.$setUntouched();
console.error(error);
return;
}
@@ -256,6 +259,7 @@ angular.module('Application').controller('NetworkController', ['$scope', '$locat
$scope.sysinfoForm.$setUntouched();
return;
} else if (error) {
+ $scope.sysinfo.error.generic = error.message;
console.error(error);
return;
}
diff --git a/src/views/profile.html b/src/views/profile.html
index f110a414a..5478bf441 100644
--- a/src/views/profile.html
+++ b/src/views/profile.html
@@ -187,9 +187,12 @@
{{ 'profile.enable2FA.title' | tr }}
{{ 'profile.enable2FA.description' | tr }}
-
+
+
+
{{ twoFactorAuthentication.notSupportedError }}
+
diff --git a/src/views/profile.js b/src/views/profile.js
index cfae6a90a..81d79ce00 100644
--- a/src/views/profile.js
+++ b/src/views/profile.js
@@ -28,6 +28,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
$scope.twoFactorAuthentication = {
busy: false,
error: null,
+ notSupportedError: null,
password: '',
totpToken: '',
secret: '',
@@ -38,6 +39,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
reset: function () {
$scope.twoFactorAuthentication.busy = false;
$scope.twoFactorAuthentication.error = null;
+ $scope.twoFactorAuthentication.notSupportedError = null;
$scope.twoFactorAuthentication.password = '';
$scope.twoFactorAuthentication.totpToken = '';
$scope.twoFactorAuthentication.secret = '';
@@ -54,7 +56,8 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
$scope.twoFactorAuthentication.mandatory2FAHelp = false;
Client.setTwoFactorAuthenticationSecret(function (error, result) {
- if (error) return console.error(error);
+ if (error && error.statusCode === 400) return $scope.twoFactorAuthentication.notSupportedError = error.message;
+ else if (error) return console.error(error);
$scope.twoFactorAuthentication.secret = result.secret;
$scope.twoFactorAuthentication.qrcode = result.qrcode;
diff --git a/src/views/users.js b/src/views/users.js
index bcc729ce7..4d52be1e3 100644
--- a/src/views/users.js
+++ b/src/views/users.js
@@ -920,7 +920,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$timeout(function () {
$scope.profileConfig.busy = false;
- }, 3000);
+ }, 500);
});
}
};
@@ -1108,7 +1108,6 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.externalLdap.busy = false;
if (error) {
- console.error(error);
if (error.statusCode === 424) {
if (error.code === 'SELF_SIGNED_CERT_IN_CHAIN') $scope.externalLdap.error.acceptSelfSignedCerts = true;
else $scope.externalLdap.error.url = true;
@@ -1127,6 +1126,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
} else if (error.statusCode === 400 && error.message === 'invalid usernameField') {
$scope.externalLdap.error.usernameField = true;
} else {
+ console.error('Failed to set external LDAP config:', error);
$scope.externalLdap.error.generic = error.message;
}
} else {