mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 9982: Forgot to add the errortext when returning an error for using an invalid token.
This commit is contained in:
parent
fef2c58996
commit
7b27f3dfae
@ -84,7 +84,7 @@ public class RegisterCompleteServlet extends HttpServlet implements ServletConte
|
||||
|
||||
if (registrationToken == null || registrationToken.trim().length() == 0) {
|
||||
statusCode = 503;
|
||||
responseMessage = "{ \"registration_info\" : { \"errorcode\" : \"503\", \"Missing token\" } }";
|
||||
responseMessage = "{ \"registration_info\" : { \"errorcode\" : \"503\", \"errortext\" : \"Missing token\" } }";
|
||||
} else {
|
||||
User resourceAdminUser = _accountSvc.getActiveUserByRegistrationToken(registrationToken);
|
||||
if (resourceAdminUser != null) {
|
||||
@ -113,7 +113,7 @@ public class RegisterCompleteServlet extends HttpServlet implements ServletConte
|
||||
responseMessage = sb.toString();
|
||||
} else {
|
||||
statusCode = 503;
|
||||
responseMessage = "{ \"registration_info\" : { \"errorcode\" : \"503\", \"Invalid token = " + registrationToken + "\" } }";
|
||||
responseMessage = "{ \"registration_info\" : { \"errorcode\" : \"503\", \"errortext\" : \"Invalid token = " + registrationToken + "\" } }";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user