mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
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:
parent
f3bb3943c9
commit
6603e39e6a
@ -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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user