RED-7539: changed error message when validating password causes an error
This commit is contained in:
parent
93a1b1fcda
commit
08ed0f29c0
@ -277,7 +277,7 @@ public class UserService {
|
||||
try {
|
||||
changeEmailClient.tokenManager().getAccessTokenString();
|
||||
} catch (NotAuthorizedException e) {
|
||||
throw new ResponseStatusException(HttpStatus.BAD_REQUEST);
|
||||
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "Could not confirm credentials");
|
||||
}
|
||||
|
||||
changeEmailClient.close();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user