Skip to content
Snippets Groups Projects
Commit 6603e39e authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Fix SYWEB-109 : No error if HS rejects the username in registration.

Display all error messages from the server when registering, rather
than just the types of errors the client recognises.
parent f3bb3943
Branches
Tags
No related merge requests found
...@@ -140,6 +140,9 @@ angular.module('RegisterController', ['matrixService']) ...@@ -140,6 +140,9 @@ angular.module('RegisterController', ['matrixService'])
$scope.feedback = "Captcha is required on this home " + $scope.feedback = "Captcha is required on this home " +
"server."; "server.";
} }
else if (error.data.error) {
$scope.feedback = error.data.error;
}
} }
else if (error.status === 0) { else if (error.status === 0) {
$scope.feedback = "Unable to talk to the server."; $scope.feedback = "Unable to talk to the server.";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment