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.
This commit is contained in:
Kegan Dougal 2014-10-27 11:58:23 +00:00
parent f3bb3943c9
commit 6603e39e6a

View file

@ -140,6 +140,9 @@ angular.module('RegisterController', ['matrixService'])
$scope.feedback = "Captcha is required on this home " +
"server.";
}
else if (error.data.error) {
$scope.feedback = error.data.error;
}
}
else if (error.status === 0) {
$scope.feedback = "Unable to talk to the server.";